Пример #1
0
 public ProfileController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
 iPow.Infrastructure.Crosscutting.Authorize.IUserService user,
     iPow.Infrastructure.Crosscutting.Comm.Service.IFormsAuthService formAuth)
     : base(work)
 {
     if (user == null)
     {
         throw new ArgumentNullException("userService is null");
     }
     if (formAuth == null)
     {
         throw new ArgumentNullException("formAuthService is null");
     }
     userService = user;
     formAuthService = formAuth;
 }
Пример #2
0
 public ProfileController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                          iPow.Infrastructure.Crosscutting.Authorize.IUserService user,
                          iPow.Infrastructure.Crosscutting.Comm.Service.IFormsAuthService formAuth)
     : base(work)
 {
     if (user == null)
     {
         throw new ArgumentNullException("userService is null");
     }
     if (formAuth == null)
     {
         throw new ArgumentNullException("formAuthService is null");
     }
     userService     = user;
     formAuthService = formAuth;
 }