public ResponseModel getTicketSources() { List <TicketSourceMaster> ticketSourceMasters = new List <TicketSourceMaster>(); ResponseModel objResponseModel = new ResponseModel(); int statusCode = 0; string statusMessage = ""; try { MasterCaller newMasterChannel = new MasterCaller(); ticketSourceMasters = newMasterChannel.GetTicketSource(new MasterServices(Cache, Db)); statusCode = ticketSourceMasters.Count == 0 ? (int)EnumMaster.StatusCode.RecordNotFound : (int)EnumMaster.StatusCode.Success; statusMessage = CommonFunction.GetEnumDescription((EnumMaster.StatusCode)statusCode); objResponseModel.Status = true; objResponseModel.StatusCode = statusCode; objResponseModel.Message = statusMessage; objResponseModel.ResponseData = ticketSourceMasters; } catch (Exception) { throw; } return(objResponseModel); }