예제 #1
0
        public async Task <ActionResult> EditAsync([Bind(Include = "VehicleModelId,VehicleMakeId,Name,Abrv")] Guid id, ModelVM modelVM)
        {
            if (ModelState.IsValid)
            {
                var dest = Mapper.Map <VehicleModel>(modelVM);
                await service.EditAsync(id, dest);

                return(RedirectToAction(""));
            }
            return(View(modelVM));
        }