public HttpResponseMessage GetCusCategoryForDD(HttpRequestMessage reqObject) { var List_CusCategory = _ICusCategoryService.GetCusCategoryForDD(); if (List_CusCategory != null) { _serviceResponse = _IDataManipulation.SetResponseObject(List_CusCategory, "information has been fetched successfully"); } else { _serviceResponse = _IDataManipulation.SetResponseObject(List_CusCategory, "Data Not Found..."); } _response = _IDataManipulation.CreateResponse(_serviceResponse, reqObject); return(_response); }
public CusType GetCreateInfoForCusType() { try { _CusType = new CusType(); _ICusCategoryService = new CusCategoryService(); _CusType.CusCategoryDD = _ICusCategoryService.GetCusCategoryForDD(); return(_CusType); } catch (Exception ex) { _ObjErrorLogService = new ErrorLogService(); _ObjErrorLogService.AddErrorLog(ex, string.Empty, "GetCreateInfoForCusType()", string.Empty); return(null); //throw ex; } }