예제 #1
0
 public IHttpActionResult AcceptUser(int projectId, string username)
 {
     try
     {
         service.AcceptUser(projectId, username);
         return(Ok());
     }
     catch (Exception e)
     {
         var message = e.Message;
         return(BadRequest(message));
     }
 }
        public IHttpActionResult AcceptUser(int projectId, string username)
        {
            try
            {
                var service = new ProjectService();
                service.AcceptUser(projectId, username);

                return(Ok());
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }