Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
52 views

"Decorate" return type in C# child classes

Objective: Serialize data from a class, with the base class taking care of its properties and child classes taking care only of the "new" properties added. Disclaimer: I come from TypeScript ...
danikaze's user avatar
  • 1,614
2 votes
1 answer
61 views

How to run typescript code in dotnet backend

The UI is built on typescript and the business wants to run a particular logic (legacy code) in the backend when a trigger occurs. As the UI code is tightly coupled, replicating it in the backend or ...
Shashank Shukla's user avatar
0 votes
0 answers
46 views

Azure APIM missing subscription key error on single api call of larger set

I have a set of API calls that go through Azure APIM to reach our backend. All but one of the calls function as they should, given that the subscription key is included. However the function below, ...
R K's user avatar
  • 33
0 votes
1 answer
57 views

AWS CDK: How to pass CDK context variable to C# Lambda startup code

I have a .NET Lambda function written in C#, implemented as a .NET Mimimal API with (as described here). I am using the CDK (TypeScript) to define the AWS resources. The build pipeline includes shell ...
CB_at_Sw's user avatar
  • 337
1 vote
2 answers
101 views

How do I transfer Data ( including Images ) from Angular client side to ASP.NET API server Side?

I've final project coming up soon, and well I'm nearly ending what I need to be done. I've just got stuck on this part. I had a method which took Hotel's information like HotelName stores rooms and ...
Qvabby's user avatar
  • 33
0 votes
0 answers
12 views

How to filter sites which are inside the bounding box

How to filter the sites which can be part of the bounding box only? Below are the reference objects. I would like to do this in typescript and c# const sites = [new L.LatLng(26.435162, 71.548647), ...
Vaibhav D's user avatar
  • 615
0 votes
0 answers
28 views

How do I use Odata contains method in all/any methods if I have several values a list item may contain?

I have an array of items, each of which has a field tariffId. A separate list of tariff ids: [123,345,567,789] I need to filter the items by containing a part of one of these ids (not equality). If I ...
Scrub's user avatar
  • 43
0 votes
0 answers
52 views

Calling TypeScript function from C# Microservice code

I am trying to call my typescript function in my C# microservice code using below code. But unable to achieve this. Any help is much appreciated. StreamReader streamReader = new StreamReader("./...
Chetan Rajakumar's user avatar
0 votes
0 answers
23 views

Getting: No Overload matches the Call. How do I resolve it?

I am not the best with Api calls. I am struggling with my api call I am trying call DeleteProdCatSubCatLinks. However it says that pCateLinksProd does "No overload matches the call". There ...
Keandra Bintcliffe's user avatar
0 votes
0 answers
20 views

Dynamically populate categories based on selected product type

Unable to access productTypeId inside foreach loop. In if (productType.Id == productTypeId) <select name="productType" id="productType" class="form-select"> &...
Honey's user avatar
  • 13
0 votes
1 answer
99 views

NSwag typescript-angular problem with enum prop names and DateTIme type

I have a problem with generating enums and DateTime attributes using Nswag and OpenApi. The first problem is generating Enums, I would like them to have the following format: export enum BillboardType ...
Adam Charusta's user avatar
1 vote
2 answers
113 views

Converting a .NET Core generic class to a TypeScript Generic Class

I have model using generics for my .NET core backend which follows this structure: public class ViewDataLayerModel<T> { [JsonPropertyName("DATA")] public List<T> Data {...
Qiuzman's user avatar
  • 1,473
0 votes
2 answers
40 views

Angular frontend raises System.Nullable error without triggering the endpoint method in bakcend

In the development we design that user clicks a button and a POST request will be sent to backend. The endpoint method will then be called and create a new entry in the database. Afterwards the ...
AoLiGei's user avatar
  • 51
1 vote
0 answers
23 views

Cookies and authentication

I have the following point that I created with a C# API, this method if you send it a password and a user and everything is correct, it returns two cookies. token and refreshToken [HttpPost] [...
Esteban Giraldo's user avatar
0 votes
1 answer
40 views

MongoDB receiving ObjectId("0...0")

I am creating a webAPI on chesstournaments. I am writing that in C# (.NET7) using MongoDB Entity Framework. The problem I have is the following: When inserting a tournament with the reference to a ...
Piotrek940's user avatar

15 30 50 per page
1
2 3 4 5
59