public ActionResult ViewDetail(decimal id) { CarriersInfo _obj = new CarriersInfo(); try { CarriersBL _bl = new CarriersBL(); _obj = _bl.GetbyId(id); } catch (Exception ex) { _obj = new CarriersInfo(); NaviCommon.Common.log.Error(ex.ToString()); } ViewBag.Carriers = _obj; return(PartialView("~/Areas/ModuleBaseData/Views/Carriers/_Partial_Detail.cshtml")); }
public ActionResult Edit(CarriersInfo carriersinfo) { try { CarriersBL _bl = new CarriersBL(); CarriersInfo _obj = new CarriersInfo(); _obj = _bl.GetbyId(carriersinfo.Id); carriersinfo.Created_date = _obj.Created_date; carriersinfo.Created_by = _obj.Created_by; decimal ck = _bl.Update(carriersinfo); return(Json(new { success = ck })); } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); return(Json(new { success = "-1" })); } }