Esempio n. 1
0
        public bool Create(SoVanBanModel model)
        {
            string msgError = "";

            try
            {
                var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, " sovanban_create",
                                                                              "@sovanbanid", model.sovanbanid,
                                                                              "@tensovanban", model.tensovanban,
                                                                              "@ghichu", model.ghichu);
                if ((result != null && !string.IsNullOrEmpty(result.ToString())) || !string.IsNullOrEmpty(msgError))
                {
                    throw new Exception(Convert.ToString(result) + msgError);
                }
                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 2
0
 public bool Update(SoVanBanModel model)
 {
     return(_res.Update(model));
 }
Esempio n. 3
0
 public SoVanBanModel UpdateSVB([FromBody] SoVanBanModel model)
 {
     _workBusiness.Update(model);
     return(model);
 }
Esempio n. 4
0
 public bool Create(SoVanBanModel model)
 {
     return(_res.Create(model));
 }
Esempio n. 5
0
 public SoVanBanModel CreateSVB([FromBody] SoVanBanModel model)
 {
     model.sovanbanid = Guid.NewGuid().ToString();
     _workBusiness.Create(model);
     return(model);
 }