public async Task <ProjectModel> Add(ProjectModel project) { // create new project and map project model to it var mappedProject = new Project(); project.MapBack(mappedProject); await projectDataService.CreateByUserAccount(authenticator.CurrentUser, mappedProject); // map project to project model to get current id project.Map(mappedProject); Projects.Add(project); return(project); }