private string SaveCustLoadAction(ITT_CUST_LOAD model) { try { ITT_CUST_LOAD_VALICATION validation = new ITT_CUST_LOAD_VALICATION(model); string msg = validation.ValidationAction(); if (!string.IsNullOrEmpty(msg)) { return(msg); } if (model.BND_OUT_DATE != null && model.NBND_ARRIVAL_DATE == null) { M_CALENDAR_BLL calBLL = new M_CALENDAR_BLL(); model.NBND_ARRIVAL_DATE = calBLL.GetArrivalDateFromOutDate(model.BND_OUT_DATE.Value); } model.LOADED_BY = Session[CHubConstValues.SessionUser].ToString(); model.LOAD_DATE = DateTime.Now; ITT_CUST_LOAD_BLL tranBLL = new ITT_CUST_LOAD_BLL(); tranBLL.Save(model); return(string.Empty); } catch (Exception ex) { return(string.Format("Fail Saved:{0}", ex.Message)); } }
public ActionResult GetArrivalDateFromOutDate(DateTime outDate) { M_CALENDAR_BLL calBLL = new M_CALENDAR_BLL(); DateTime arrDate = calBLL.GetArrivalDateFromOutDate(outDate).Value; return(Json(arrDate)); }