コード例 #1
0
        public ActionResult AddOwnerAsync(int id, string email)
        {
            CurrentUserModel.ValidateProject(id);
            User u = CurrentServiceModel.GetUserByEmail(email);

            if (u != null)
            {
                CurrentUserModel.AddProjectOwner(id, u.Id);
                return(Content("OK"));
            }
            else
            {
                return(Content(""));
            }
        }