using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Mvc.Filters; namespace myPortal.API { /// <summary> /// Base api controller will extend to all apis. And can handle authentication and authorization here. /// </summary> public class BaseAPIController : ApiController { /// <summary> /// BaseAPIController constructor will check that identity exists or not. /// </summary> public BaseAPIController () { if (! HttpContext .Current.User.Identity.IsAuthenticated) ...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers