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;
            }
        }
Ejemplo n.º 2
0
 public bool Create(LoaiChuDe model)
 {
     return(_res.Create(model));
 }
Ejemplo n.º 3
0
 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);
 }