Пример #1
0
 public async Task <ActionResult <int> > CreateProjectProfile([FromBody] ProjectProfileModel model) => await Execute(async operation =>
 {
     var id = await projectService.CreateProjectProfile(operation, model.ToEntity());
     return(id);
 });
Пример #2
0
 public async Task <ActionResult> UpdateProjectProfile(int id, [FromBody] ProjectProfileModel model) => await Execute(async operation =>
 {
     var entity = model.ToEntity();
     entity.Id  = id;
     await projectService.UpdateProjectProfile(operation, entity);
 });