示例#1
0
        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);
        }
示例#2
0
 public void UpdateTimeTable([FromBody] UserMyGroup _userMyGroup)
 {
     _repo.UpdateMyGroup(_userMyGroup);
 }
示例#3
0
 public void Post([FromBody] UserMyGroup _userMyGroup)
 {
     _repo.PostMyGroup(_userMyGroup);
 }
示例#4
0
        public void PostMyGroup(UserMyGroup _userMyGroup)
        {
            string sql = "Insert Into UserMyGroup (ID, MyGroupName, SaveTime, EditTime) Values (@ID, @MyGroupName, @SaveTime, @EditTime)";

            db.Execute(sql, _userMyGroup);
        }