Example #1
0
 public IHttpActionResult DeleteUser([FromBody] ProjectMangerModel.Users user)
 {
     try
     {
         CommonEntities.Users usr = new CommonEntities.Users
         {
             UserID     = user.UserID,
             FirstName  = user.FirstName,
             LastName   = user.LastName,
             EmployeeID = user.EmployeeID
         };
         _userBL.DeleteUser(usr);
         return(Ok());
     }
     catch (Exception)
     {
         return(InternalServerError());
     }
 }
Example #2
0
        public void DeleteUser(CommonEntities.Users user)
        {
            var userBL = new UserBL(mockContext);

            userBL.DeleteUser(user);
        }