Esempio n. 1
0
        public int CreateOrUpdate(CommonAttachmentsConfig model)
        {
            var get = _repo.Get(model.ID);

            if (get == null)
            {
                _repo.Insert(model);
            }
            else
            {
                _repo.Update(model);
            }
            return(model.ID);
        }
Esempio n. 2
0
 public void Update(CommonAttachmentsConfig model)
 {
     _repo.Update(model);
 }
Esempio n. 3
0
 public int Create(CommonAttachmentsConfig model)
 {
     _repo.Insert(model);
     return(model.ID);
 }