public ActionResult SaveAddData(Contracts_Info _ObjInfo) { try { ContractBL _ContractBL = new ContractBL(); _ObjInfo.Created_By = SessionData.CurrentUser.User_Name; _ObjInfo.Created_Date = NaviCommon.CommonFuc.CurrentDate(); _ObjInfo.Due_Date = _ObjInfo.Register_Date.AddDays((double)_ObjInfo.Period); bool _rel = _ContractBL.Contract_Insert(_ObjInfo); return(Json(new { success = _rel })); } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); return(Json(new { success = false })); } }