Problem I designed my repository class and I need some advice from you. Now I have a method GetByID that […]
Tag: asp.net-mvc
Generic Wrapper class for HTTPClient methods
Problem I am trying to using HttpClient for making API calls from a different domain and for that purpose I […]
Implementing Search method For a Class
Problem In my web app, I have a view where users can search in receipts and drafts. I’ve implemented this […]
Optimize store proc performance being called in c# on array loop
Problem I have a c# application(mvc) that allows a user to upload an excel sheet containing an account number key […]
Properly create and customise a web app using visual studio 2015 C# MVC template
Problem I’m new to C# web, I want to know how to properly create a web app using visual studio […]
Simple tracking online users in ASP.NET
Problem I wrote simple online users tracking for my ASP.NET MVC project. In Global.asax I added: protected void Session_Start(Object sender, […]
Cloudinary upload call takes too long
Problem I have the following async ActionResult. public async Task<ActionResult> most_loved_pix() { var access_token = HttpContext.Items[“access_token”].ToString(); if (!string.IsNullOrEmpty(access_token)) { Account […]
Best approach to combine repositories logic
Problem Let’s suppose I have 2 repositories: first is responsible for creating job and return jobId second is responsible for […]
.NET MVC Infinite Child record add
Problem Here is my working attempt to allow multiple/infinite child record entries with the original parent post in .NET MVC. […]
Getting a user’s property
Problem Can this extension method be improved? public static string GetAvatar(this System.Security.Principal.IIdentity user) { var service = SmObjectFactory.Container.GetInstance<IApplicationUserManager>(); return service.FindByIdAsync(int.Parse(user.GetUserId())).Result.Avatar; […]