示例#1
0
 public ActionResult <BaseResponse <EmptyViewModel> > EditEpic([FromRoute] int id, [FromBody] NewEditEpicViewModel model)
 {
     return(GetResult(GetCommand <UpdateEpicCommand>().Execute(new EditEpicRequestViewModel
     {
         ViewModel = model,
         EpicId = id
     })));
 }
示例#2
0
        public void CreateEpic(ApplicationUser createdBy, DataAccess.Entities.Project project, NewEditEpicViewModel model)
        {
            var epic = new Epic()
            {
                Name        = model.Name,
                Description = model.Description,
                Project     = project
            };

            repository.Create(epic, createdBy);
        }
示例#3
0
 public ActionResult <BaseResponse <EmptyViewModel> > CreateEpic([FromBody] NewEditEpicViewModel model)
 {
     return(GetResult(GetCommand <CreateEpicCommand>().Execute(model)));
 }