public IHttpActionResult DeleteUserAccount(int id) { UserAccount userAccount = _user.GetUserAccountByID(id); if (userAccount == null) { return(NotFound()); } _user.DeleteUserAccount(id); return(Ok(userAccount)); }
public IHttpActionResult DeleteUserAccount(int id) { var userAccount = db.DeleteUserAccount(id); return(Ok(userAccount)); }