Пример #1
0
        public ActionResultViewModel Edit(TaskEditSetupViewModel inModel)
        {
            var task = _repository.Get<Task>(inModel.Id);

            return new ActionResultViewModel()
            {
                Task = task,
                WasSuccessful = true
            };
        }
Пример #2
0
 //posted to?
 public ActionResultViewModel Delete(TaskEditSetupViewModel inModel)
 {
     _repository.Delete<Task>(inModel.Id);
     return new ActionResultViewModel(){WasSuccessful = true};
 }