Ejemplo n.º 1
0
        public bool Create(QT_DaoTaoModel model)
        {
            string msgError = "";

            try
            {
                var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "daotao_create",
                                                                              "@ID_DT", model.ID_DT,
                                                                              "@ID_GV", model.ID_GV,
                                                                              "@Ten_DT", model.Ten_DT,
                                                                              "@ND_DT", model.ND_DT,
                                                                              "@ChuyenMon", model.ChuyenMon,
                                                                              "@ThoiGian", model.ThoiGian);
                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 QT_DaoTaoModel UpdateUser([FromBody] QT_DaoTaoModel model)
 {
     _QT_DaoTaoBLL.Update(model);
     return(model);
 }
Ejemplo n.º 3
0
 public QT_DaoTaoModel CreateItem([FromBody] QT_DaoTaoModel model)
 {
     _QT_DaoTaoBLL.Create(model);
     return(model);
 }
Ejemplo n.º 4
0
 public bool Update(QT_DaoTaoModel model)
 {
     return(_res.Update(model));
 }
Ejemplo n.º 5
0
 public bool Create(QT_DaoTaoModel model)
 {
     return(_res.Create(model));
 }