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

            try
            {
                var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "owneradmin_item_create",
                                                                              "@owneradminid", model.owneradminid,
                                                                              "@acountid", model.acountid,
                                                                              "@all1", model.all1,
                                                                              "@departmentreadonly", model.departmentreadonly,
                                                                              "@departmentmodify", model.departmentmodify,
                                                                              "@departmentdelate", model.departmentdelate,
                                                                              "@departmentcreat", model.departmentcreat,
                                                                              "@groupuseradmin", model.groupuseradmin,
                                                                              "@staffreadonly", model.staffreadonly,
                                                                              "@staffmodify", model.staffmodify,
                                                                              "@staffdelete", model.staffdelete,
                                                                              "@stafflreat", model.stafflreat,
                                                                              "@systemlogview", model.systemlogview,
                                                                              "@systemlogdelete", model.systemlogdelete
                                                                              );
                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(OwneradminModel model)
 {
     return(_res.Create(model));
 }
Ejemplo n.º 3
0
 public bool Update(OwneradminModel model)
 {
     return(_res.Update(model));
 }
Ejemplo n.º 4
0
 public OwneradminModel UpdateOwneradmin([FromBody] OwneradminModel model)
 {
     _itemBusiness.Update(model);
     return(model);
 }
Ejemplo n.º 5
0
 public OwneradminModel CreateItem([FromBody] OwneradminModel model)
 {
     _itemBusiness.Create(model);
     return(model);
 }