Ejemplo n.º 1
0
        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"));
        }
Ejemplo n.º 2
0
        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" }));
            }
        }