public IHttpActionResult DeleteUser(int userId)
        {
            UserModel userModel = pmService.GetUserById(userId);

            if (userModel == null)
            {
                return(NotFound());
            }
            var result = pmService.DeleteUser(userModel);

            if (result)
            {
                return(Ok(userModel));
            }
            return(BadRequest());
        }
Esempio n. 2
0
        public void When_DeleteUser_Then_VerifyResult()
        {
            var tasks = _mockProjectManagerService.DeleteUser(1);

            Assert.NotNull(tasks);
        }
 public IHttpActionResult DeleteUser(int id)
 {
     return(Ok(projectManagerService.DeleteUser(id)));
 }