public JsonResult Edit([FromBody] Project project)
        {
            string maybeId = projectsService.Update(project, HttpContext.User);

            if (maybeId == null)
            {
                if (!projectsService.Exists(project.Id))
                {
                    return(new JsonResult(new { message = "ProjectNotExists" }));
                }
                else
                {
                    return(new JsonResult(new { message = "ExceptionWasRaised" }));
                }
            }
            project = projectsService.Get(project.Id, HttpContext.User);
            project.ProjectMemberIds = projectsService.GetProjectCreateModel(project.Id, HttpContext.User);
            project.UsernamesWithIds = projectsService.GetProjectCreateModel(null, HttpContext.User);
            return(new JsonResult(project));
        }