public async Task <ActionResult <int> > CreateProjectProfile([FromBody] ProjectProfileModel model) => await Execute(async operation => { var id = await projectService.CreateProjectProfile(operation, model.ToEntity()); return(id); });
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); });