public bool Update(TinHocModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "TinHoc_update", "@ID_TH", model.ID_TH, "@ID_GV", model.ID_GV, "@Ten_TinHoc", model.Ten_TinHoc, "@TrinhDo", model.TrinhDo, "@ChungChi", model.ChungChi); if ((result != null && !string.IsNullOrEmpty(result.ToString())) || !string.IsNullOrEmpty(msgError)) { throw new Exception(Convert.ToString(result) + msgError); } return(true); } catch (Exception ex) { throw ex; } }
public TinHocModel UpdateUser([FromBody] TinHocModel model) { _TinHocBLL.Update(model); return(model); }
public bool Update(TinHocModel model) { return _res.Update(model); }
public TinHocModel CreateItem([FromBody] TinHocModel model) { model.ID_TH = Guid.NewGuid().ToString(); _TinHocBLL.Create(model); return(model); }
public bool Create(TinHocModel model) { return _res.Create(model); }