public void CreatHistoryUser(HistoryUserDTO historyUser) { new HistoryUserDao().CreateHistoryUser(new HistoryUser() { MusicID = historyUser.MusicID, UserID = historyUser.UserID }); }
public IHttpActionResult CreateHistoryUser([FromBody] HistoryUserDTO historyUser) { try { new Repositories().CreateHistoryUser(historyUser); return Ok(); } catch (Exception e) { Console.WriteLine(e); return InternalServerError(); } }
public void CreateHistoryUser(HistoryUserDTO historyUser) { new UserBus().CreatHistoryUser(historyUser); }