public int CreateOrUpdate(CommonAttachments model) { var get = _repo.Get(model.ID); if (get == null) { _repo.Insert(model); } else { _repo.Update(model); } return(model.ID); }
public void Update(CommonAttachments model) { _repo.Update(model); }
public int Create(CommonAttachments model) { _repo.Insert(model); return(model.ID); }