public IHttpActionResult GetSearchSupportData() { BLL.ShippingInstructionMng bll = new BLL.ShippingInstructionMng(); Library.DTO.Notification notification; DTO.ShippingInstructionMng.SearchFilterData data = bll.GetFilterData(out notification); return(Ok(new Library.DTO.ReturnData <DTO.ShippingInstructionMng.SearchFilterData>() { Data = data, Message = notification, TotalRows = 0 })); }
public DTO.ShippingInstructionMng.SearchFilterData GetFilterData(out Library.DTO.Notification notification) { notification = new Library.DTO.Notification() { Type = Library.DTO.NotificationType.Success }; DTO.ShippingInstructionMng.SearchFilterData data = new DTO.ShippingInstructionMng.SearchFilterData(); data.PODs = new List <DTO.Support.POD>(); //try to get data try { data.PODs = supportFactory.GetPOD().ToList(); } catch (Exception ex) { notification.Type = Library.DTO.NotificationType.Error; notification.Message = ex.Message; } return(data); }