Esempio n. 1
0
        public IActionResult Detail(int id)
        {
            var carrier = _carrierService.GetById(id);

            var model = new CarrierDetailModel
            {
                Id       = carrier.Id,
                Name     = carrier.Name,
                Address  = carrier.Address,
                Contacts = FrontHelpers.FrontHumanizeHelper.ContactsHumanize(carrier.Contacts),
                Vehicles = carrier.Vehicles
            };

            return(View(model));
        }
        public IActionResult Detail(string id)
        {
            var carrier = _carriers.getCarrier(id);

            Console.WriteLine("INFO {} ENDPOINT CARRIER ID RECEIVED: " + id);
            var model = new CarrierDetailModel
            {
                Id                  = id,
                name                = carrier.name,
                fantasyname         = carrier.fantasyname,
                headquartersaddress = carrier.headquartersaddress,
                owner               = carrier.owner,
                telephone           = carrier.telephone
            };

            return(View(model));
        }