Beispiel #1
0
        public ActionResult EditOperation(int?id)
        {
            OperationViewModel operation;

            if (id == null || id == 0)
            {
                operation = new OperationViewModel();
            }
            else
            {
                operation = _operationRepository.Get(id.GetValueOrDefault());
            };


            return(View(operation));
        }