Пример #1
0
        public async Task <ActionResult> Edit([Bind(Include = "FreightTypeID,Description")] FreightType freightType)
        {
            if (ModelState.IsValid)
            {
                await freightTypeRepository.UpdateAsync(freightType);

                return(RedirectToAction("Index"));
            }

            return(View(freightType));
        }