Ejemplo n.º 1
0
 public static void SendAgentConsolidatedMawbAllocationEmail()
 {
     try
     {
         var Result = new MawbAllocationRepository().GetMawbUnallocatedShipments();
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
        public IHttpActionResult SaveMAWBdetail(TradelaneMAWBDetail mawbDetail)
        {
            try
            {
                new TradelaneBookingRepository().SaveSalesOrderNumber(mawbDetail.HAWBpackages);
                var result = new MawbAllocationRepository().SaveMawbDetail(mawbDetail);

                if (result.Status)
                {
                    result = new TradelaneBookingRepository().UpdateMAWBDetail(mawbDetail);
                    new TradelaneEmailRepository().MawbUpdateMail(mawbDetail.TradelaneShipmentId);
                    return(Ok(result));
                }
                else
                {
                    return(BadRequest());
                }
            }
            catch (Exception ex)
            {
                return(BadRequest());
            }
        }