예제 #1
0
        public ActionResult Edit(TreatmentBMPAssessmentObservationTypePrimaryKey treatmentBMPAssessmentObservationTypePrimaryKey, EditViewModel viewModel)
        {
            var treatmentBMPAssessmentObservationType = treatmentBMPAssessmentObservationTypePrimaryKey.EntityObject;

            if (!ModelState.IsValid)
            {
                return(ViewEdit(viewModel, treatmentBMPAssessmentObservationType));
            }
            viewModel.UpdateModel(treatmentBMPAssessmentObservationType, CurrentPerson);

            return(RedirectToAction(new SitkaRoute <TreatmentBMPAssessmentObservationTypeController>(c => c.Detail(treatmentBMPAssessmentObservationType.PrimaryKey))));
        }