public static Struct_Branch GetBranchDetails(string CompanyID, string BranchID) { Struct_Branch OutPutData = new Struct_Branch(); TailerApp.Common.LoginUser currentUser; try { if (!GetUserSession(out currentUser)) { OutPutData.errorCode = 10001; OutPutData.errorMessage = ""; } AdminManagerSP AdminManager = new AdminManagerSP(); if (!AdminManager._C_GetBranchDetails(string.IsNullOrEmpty(CompanyID) ? 0 : Convert.ToInt32(CompanyID), currentUser.UserId, string.IsNullOrEmpty(BranchID) ? 0 : Convert.ToInt32(BranchID), out OutPutData)) { 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); }