public bool Create(DeTaiNCKHModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "DeTaiNCKH_create", "@ID_DeTai", model.ID_DeTai, "@Ten_DeTai", model.Ten_DeTai, "@Cap_QuanLy", model.Cap_QuanLy, "@TG_BD", model.TG_BD, "@TG_KT", model.TG_KT, "@TinhTrang", model.TinhTrang, "@KetQua", model.KetQua ); 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 bool Update(DeTaiNCKHModel model) { return(_res.Update(model)); }
public DeTaiNCKHModel UpdateUser([FromBody] DeTaiNCKHModel model) { _DeTaiNCKHBLL.Update(model); return(model); }
public bool Create(DeTaiNCKHModel model) { return(_res.Create(model)); }
public DeTaiNCKHModel CreateItem([FromBody] DeTaiNCKHModel model) { model.ID_DeTai = Guid.NewGuid().ToString(); _DeTaiNCKHBLL.Create(model); return(model); }