Beispiel #1
0
 public HttpResponseMessage GetSecuritySettings()
 {
     try
     {
         Log.Info("SecuritySettingsController:GetSecuritySettings", "Get Security Settings Start", string.Empty);
         SecuritySettings model = new SecuritySettings();
         model.TransType = "FETCH";
         UserContextModel objUser = new UserContextModel();
         objUser.UserID      = 1;
         objUser.CompanyCode = "devDB";
         var data = _securitySettingService.GetSecuritySettings(model, objUser);
         Log.Info("SecuritySettingsController:GetSecuritySettings", "Get Security Settings END", string.Empty);
         return(this.Request.CreateResponse(HttpStatusCode.OK, data));
     }
     catch (Exception ex)
     {
         var helper = new AppPresentationException(ex);
         return(helper.GetResponse(this));
     }
 }