Ejemplo n.º 1
0
        public ActionResult EditCarrier(long id)
        {
            ViewData["CarrierTypes"] = CarrierTypes;
            if (id == 0)
            {
                return(PartialView("_CarrieFormEdit", new CarrierModel()));
            }
            var model = carrierService.GetModelById(id);

            return(PartialView("_CarrieFormEdit", model));
        }