public IActionResult GetById(Guid Id) { var statusCode = csTransactionDetailService.CheckDetailPermission(Id); if (statusCode == 403) { return(Forbid()); } CsMawbcontainerCriteria criteriaMaw = new CsMawbcontainerCriteria { Hblid = Id }; var hbl = csTransactionDetailService.GetDetails(Id); var resultMaw = containerService.Query(criteriaMaw).ToList(); if (resultMaw.Count() > 0) { hbl.CsMawbcontainers = resultMaw; } return(Ok(hbl)); }
public IActionResult Query(CsMawbcontainerCriteria criteria) { return(Ok(csContainerService.Query(criteria))); }