Пример #1
0
        public virtual async Task <ActionResult> Edit(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var viewModel = await _workExperienceService.GetForEditAsync(id.Value, IranCitiesPath);

            if (viewModel == null)
            {
                return(HttpNotFound());
            }

            return(PartialView(MVC.WorkExperience.Views._Edit, viewModel));
        }