public void UpdateMyGroup(UserMyGroup _userMyGroup) { // 시간표 다시 저장할 때 쓰는 쿼리 string sql = "Update UserMyGroup SET EditTime = '" + _userMyGroup.EditTime + "' Where ID = '" + _userMyGroup.ID + "' and MyGroupName = N'" + _userMyGroup.MyGroupName + "'"; db.Execute(sql, _userMyGroup); }
public void UpdateTimeTable([FromBody] UserMyGroup _userMyGroup) { _repo.UpdateMyGroup(_userMyGroup); }
public void Post([FromBody] UserMyGroup _userMyGroup) { _repo.PostMyGroup(_userMyGroup); }
public void PostMyGroup(UserMyGroup _userMyGroup) { string sql = "Insert Into UserMyGroup (ID, MyGroupName, SaveTime, EditTime) Values (@ID, @MyGroupName, @SaveTime, @EditTime)"; db.Execute(sql, _userMyGroup); }