public bool Add(HangUpTime hangUpTime) { const string sql = @" INSERT INTO HangUpTime ( UserId, Minutes ) VALUES ( @UserId, @Minutes )"; using (var con = DbFactory.CreateConnection()) { return(con.Execute(sql, hangUpTime) > 0); } }
public bool Add(HangUpTime hangUpTime) { return(_hangupDal.Add(hangUpTime)); }