public bool Create(LoaiChuDe model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "sp_loaichude_create", /* "@id", model.id,*/ "@tenchude", model.tenchude); 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 Create(LoaiChuDe model) { return(_res.Create(model)); }
public bool Update(LoaiChuDe model) { return(_res.Update(model)); }
public LoaiChuDe UpdateUser([FromBody] LoaiChuDe model) { _itemGroupBusiness.Update(model); return(model); }
public LoaiChuDe CreateTintuc([FromBody] LoaiChuDe model) { _itemGroupBusiness.Create(model); return(model); }