예제 #1
0
        public bool Update(SoHuu_TriTueModel model)
        {
            string msgError = "";

            try
            {
                var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "SoHuu_TriTue_update",
                                                                              "@ID_TriTue", model.ID_TriTue,
                                                                              "@Ten_TriTue", model.Ten_TriTue,
                                                                              "@ThoiGian", model.ThoiGian,
                                                                              "@DonVi_Cap", model.DonVi_Cap);
                if ((result != null && !string.IsNullOrEmpty(result.ToString())) || !string.IsNullOrEmpty(msgError))
                {
                    throw new Exception(Convert.ToString(result) + msgError);
                }
                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #2
0
 public bool Update(SoHuu_TriTueModel model)
 {
     return(_res.Update(model));
 }
예제 #3
0
 public SoHuu_TriTueModel UpdateUser([FromBody] SoHuu_TriTueModel model)
 {
     _SoHuu_TriTueBLL.Update(model);
     return(model);
 }
예제 #4
0
 public bool Create(SoHuu_TriTueModel model)
 {
     return(_res.Create(model));
 }
예제 #5
0
 public SoHuu_TriTueModel CreateItem([FromBody] SoHuu_TriTueModel model)
 {
     model.ID_TriTue = Guid.NewGuid().ToString();
     _SoHuu_TriTueBLL.Create(model);
     return(model);
 }