create interface and service
How do I create my implementation for the interface and service? How do I connect the service and interfaceThis is the servicepublic classUploadService : BaseModelService<HttpPostedFileBase,...
View ArticleHelp page generation and lazyloading = false
I have a webapi method where I don't want to include related entities in the response. I have done this by disabling lazy loading. db.Configuration.LazyLoadingEnabled = FalseBut help page generated...
View Articlehttp/2 support for Http Client Library
Hi,I would like to know from which version of HttpClient will the support for Http/2 be enabled? Are there any specific road maps for the same.Thanks and regardsVenkatesh
View ArticleHow to convert reference enum type property of an entity
Hi, I have a problem please help me My code is: public enum DataState { Available, UnAvailable } public class A { public string Name{ get; set; }...
View Articleupdate Table via winform application - Need Advice
Hi,I would like some advice.I have created a Loyalty Points web API using the entity framework.I have a client app that sends data to my API. This all works fine. I also have a separate winform...
View ArticleOwin TestServer IsLocal
Hi,I am trying to use the Owin TestServer to test a Web Api in memory.Is there a way to configure the server and request so that the IsLocal property is set ?Many thanks
View ArticleDesign Question
We are in the process of upgrading and creating new applications here and I have a architecture question. We have a number a few different web sites that are used internally and a few externally. For...
View ArticleAsp.net Web Api with MVC 5
Hi ,I am trying to create the Shopping cart like application as a project so planning to use these technologies, is it correct choice considering the we are expecting cell phone users as visitors...
View ArticleAPI request is not supported
I have a web api that receives a file from a client - when i use PostMan or fittler to check my POST get the following message.Error Message{"Message":"The requested resource does not support http...
View ArticleWeb Api with asp.net website
Will web api work woth asp.net website or just with asp.net web applications ???Here is my problem, i have old asp.net website and trying to add web api to it. When i do it the way all tutorials show...
View ArticleNeed links for learning WEB API Authentication and Authorization
Hi,Can anyone provide me links for learning WEB API Authentication and Authorization that to deals with Security.
View ArticleLearning MVC need help with unit test..
How do I create a MSTest or Unite Test for the following codes?Web API Controller need a unit test (please help)public classMyManagementController : ApiController { private readonly...
View Articlehow to return a string... from HttpPostedFileBase
I have the following private method and need to return a string value?[HttpPost] private IEnumerable<IEnumerable<HttpPostedFileBase>> SendS3(IEnumerable<MultipartFileData> DocCollect,...
View ArticleCan't install the new version of Microsoft.AspNet.WebApi.OData
Tried to upgrade the NuGet packages this morning. When upgrading Microsoft.AspNet.WebApi.OData, getting the following error: "Already referencing a newer version of 'System.Spatial'. It seems that the...
View ArticleHow To Call API With credentials
hi all I have url of Api and credentials. can any body help me to call api with credentials
View ArticleHow to create IHttpContent object
Hello,I am new on building web api. i am confused on how to pass data from application (Winphone in my case) to database.How to create IHttpContent object for my PostAsync or PutAsync method ? i have...
View ArticleOdata v4 patch request - how to return updated entity.
public async Task<IHttpActionResult> Patch([FromODataUri] string key, Delta<TestModel.TestTable> TestTable) { if (!ModelState.IsValid) { return BadRequest(ModelState); } var entity = await...
View ArticleHow To Get Web Api 2.2 Working With Ninject
Hi,Could someone provide an up to date set of instructions on how to get Web API 2.2 working with Ninject on IIS site. I have downloaded from Nuget Ninject.WebApi which includes Ninject,...
View ArticleHow to Solve 403 error ?
Hi all,am send the Json request to the web Api to get the response ,but am getting error (I bolded the error at the where am getting error)protected void btnGet_Click(object sender, EventArgs e)...
View ArticleWhy is the map.server virtual path not being saved to the database
I have been stuck on saving the virtual path of a file upload to my db. Without the virtual path the file is being saved and the url in the db is the physical path of the file. so when i try to...
View Article