public static JSONReturnData SaveCompanyDetails(string CompanyID, string CompanyDetails, string AddressDetails) { JSONReturnData OutPutData = new JSONReturnData(); TailerApp.Common.LoginUser currentUser; try { if (!GetUserSession(out currentUser)) { OutPutData.errorCode = 10001; OutPutData.errorMessage = ""; } AdminManagerSP AdminManager = new AdminManagerSP(); if (AdminManager._C_AddModifyCompany(string.IsNullOrEmpty(CompanyID) ? 0 : Convert.ToInt32(CompanyID), currentUser.UserId, CompanyDetails, AddressDetails)) { OutPutData.errorCode = AdminManager.GetLastErrorCode(); OutPutData.errorMessage = AdminManager.GetLastError(); } return(OutPutData); } catch (Exception e) { OutPutData.errorCode = -4; OutPutData.errorMessage = "Unknown Error Occured"; Utils.Write(e); } return(OutPutData); }