public void UpdateUser(MarketManFM userFM) { MarketManDAO dao = new MarketManDAO(); MarketMan user = dao.GetMarketManByID(userFM.ID); user.Email = userFM.Email; dao.UpdateMarketMan(user); }
public MarketManFM GetUserFM(int ID) { MarketManDAO dao = new MarketManDAO(); MarketMan user = dao.GetMarketManByID(ID); MarketManFM userFM = new MarketManFM(user); return(userFM); }