public Account Delete(Account Account) { var user = _userService.GetByAccount(Account.Id); if (user != null) { _userService.Delete(user); } database.Account.Remove(Account); database.SaveChanges(); return(Account); }