Exemplo n.º 1
0
 private List <ReceivingDetailModel> getReceivingDetail([Optional] string receivingId)
 {
     if (receivingId == null)
     {
         return(SessionHelper.Receiving.ReceivingDetail.ToList());
     }
     else
     {
         IList <ReceivingDetailModel> modelList = service.GetAllReceivingDetail(Convert.ToInt64(receivingId)).Select(x => new ReceivingDetailModel(x, true)).ToList();
         return(modelList.ToList());
     }
 }