예제 #1
0
 public dynamic SearchAllUserTypes(DTO.LABURNUM.COM.UserTypeModel model)
 {
     if (new FrontEndApi.ApiClientApi().IsClientValid(model.ApiClientModel.UserName, model.ApiClientModel.Password))
     {
         List <DTO.LABURNUM.COM.UserTypeModel> dbUserTypes = new UserTypeHelper(new FrontEndApi.UserTypeApi().GetActiveUserTypes()).Map();
         return(GetApiResponseModel("Successfully Performed.", true, dbUserTypes));
     }
     else
     {
         return(GetApiResponseModel("Api Access User Name or Password Invalid.", false, null));
     }
 }
예제 #2
0
 public void LoadUserTypeHelper()
 {
     UserTypeHelper = new UserTypeHelper();
     UserTypeHelper.Init(UserType);
 }