/// <summary> /// Deletes the user /// </summary> /// <param name="user">user</param> /// <returns>Returns a boolean flag if deleted</returns> public Boolean DeleteUser(User user) { UserManagementComponent umc = new UserManagementComponent(); return umc.DeleteUser(user); }
/// <summary> /// Deletes the user /// </summary> /// <param name="user">user</param> /// <returns>Returns a boolean flag if deleted</returns> public Boolean DeleteUser(User user) { var userManagementDAC = new UserManagementDAC(); Boolean returnFlag = userManagementDAC.Delete(user); return returnFlag; }
/// <summary> /// Updates the user /// </summary> /// <param name="user">user</param> /// <returns>Returns a User object.</returns> public User UpdateUser(User user) { var userManagementDAC = new UserManagementDAC(); using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required)) { userManagement.UpdateUser(user); ts.Complete(); } return user; }
/// <summary> /// Updates the user /// </summary> /// <param name="user">user</param> /// <returns>Returns a User object.</returns> public User UpdateUser(User user) { UserManagementComponent umc = new UserManagementComponent(); return umc.UpdateUser(user); }
/// <summary> /// Adds the user /// </summary> /// <param name="user">user</param> /// <returns>Returns a User object.</returns> public User AddUser(User user) { UserManagementComponent umc = new UserManagementComponent(); return umc.AddUser(user); }