Exemplo n.º 1
0
        public async Task <ObserveSetting> Create(ObserveSetting entity)
        {
            var ObserveSetting = _repositoryObserveSetting.FirstOrDefault(x => x.Id == entity.Id);

            if (ObserveSetting != null)
            {
                throw new UserFriendlyException("Observe Setting Already exist");
            }

            else
            {
                return(await _repositoryObserveSetting.InsertAsync(entity));
            }
        }
Exemplo n.º 2
0
 public void Update(ObserveSetting entity)
 {
     _repositoryObserveSetting.Update(entity);
 }