Exemple #1
0
        // assign user to project
        public string SaveAssignUser(AssignUser assignUser)
        {
            if (projectGateway.IsUserAlreadyAssigned(assignUser))
            {
                return("Already Assigned");
            }
            else
            {
                int rowsAffected = projectGateway.SaveAssignUser(assignUser);

                if (rowsAffected > 0)
                {
                    return("Assigned Successfull");
                }
                else
                {
                    return("Assigned Failed");
                }
            }
        }