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)); } }
public void LoadUserTypeHelper() { UserTypeHelper = new UserTypeHelper(); UserTypeHelper.Init(UserType); }