public ActionResult <BaseResponse <EmptyViewModel> > EditEpic([FromRoute] int id, [FromBody] NewEditEpicViewModel model) { return(GetResult(GetCommand <UpdateEpicCommand>().Execute(new EditEpicRequestViewModel { ViewModel = model, EpicId = id }))); }
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); }
public ActionResult <BaseResponse <EmptyViewModel> > CreateEpic([FromBody] NewEditEpicViewModel model) { return(GetResult(GetCommand <CreateEpicCommand>().Execute(model))); }