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

            try
            {
                var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "systemlog_item_create",
                                                                              "@systemlogid", model.systemlogid,
                                                                              "@acountid", model.acountid,
                                                                              "@descriptionaction", model.descriptionaction,
                                                                              "@logdate", model.logdate
                                                                              );
                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 SystemlogModel UpdateSystemlog([FromBody] SystemlogModel model)
 {
     _itemBusiness.Update(model);
     return(model);
 }
Esempio n. 3
0
 public bool Create(SystemlogModel model)
 {
     return(_res.Create(model));
 }
Esempio n. 4
0
 public SystemlogModel CreateItem([FromBody] SystemlogModel model)
 {
     _itemBusiness.Create(model);
     return(model);
 }
Esempio n. 5
0
 public bool Update(SystemlogModel model)
 {
     return(_res.Update(model));
 }