public bool Create(HD_SinhVien_NCKHModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "HD_SinhVien_NCKH_create", "@ID_HDSV", model.ID_HDSV, "@Ten_DeTai", model.Ten_DeTai, "@Cap_ThucHien", model.Cap_ThucHien, "@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 HD_SinhVien_NCKHModel UpdateUser([FromBody] HD_SinhVien_NCKHModel model) { _HD_SinhVien_NCKHBLL.Update(model); return(model); }
public HD_SinhVien_NCKHModel CreateItem([FromBody] HD_SinhVien_NCKHModel model) { model.ID_HDSV = Guid.NewGuid().ToString(); _HD_SinhVien_NCKHBLL.Create(model); return(model); }
public bool Update(HD_SinhVien_NCKHModel model) { return(_res.Update(model)); }
public bool Create(HD_SinhVien_NCKHModel model) { return(_res.Create(model)); }