Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task <Notification> Executar(Categoria entity) { _notification.Errors.Clear(); Validate(entity); if (_notification.HasErrors == true) { return(_notification); } _repository.Edit(entity); try { await _repository.SaveAsync(); } catch (Exception ex) { _notification.Errors.Add(ex.Message); } return(_notification); }