Esempio n. 1
0
 public Response SaveApplicationUser(ApplicationUserModel applicationUserModel)
 {
     _response = new Response();
     try
     {
         IApplicationUserBusiness applicationUserService = new ApplicationUserBusiness();
         _response.responseData = applicationUserService.SaveApplicationUser(applicationUserModel);
         //_response.message = "User Save successfully !!";
         //_response.success = true;
     }
     catch (Exception ex)
     {
         _response.success = false;
         _response.message = ex.Message.ToString();
     }
     finally
     {
         applicationUserService = null;
     }
     return(_response);
 }
Esempio n. 2
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context  = context;
     Employers = new EmployersBusiness(context);
     Users     = new ApplicationUserBusiness(context);
 }
Esempio n. 3
0
 public AccountAPIController(ApplicationUserBusiness _applicationUserService)
 {
     this.applicationUserService = _applicationUserService;
 }
 public ApplicationUserController(IApplicationUserBusiness applicationUserBusiness)
 {
     _applicationUserBusiness = applicationUserBusiness;
 }