public static void SaveProfile(TbUser user) { using (DataAccess.User db = new DataAccess.User()) { db.Update(user); } }
public static void ChangeStatus(string userName, int statusId) { using (DataAccess.User db = new DataAccess.User()) { db.Update(userName, statusId); } }