public void DeleteNotificationType(NotifiactionsType notificationType) { try { repository.Delete(notificationType); } catch (Exception ex) { throw ex; } }
public void UpdateNotificationType(NotifiactionsType notificationType) { var original = repository.GetById(n => n.TypeId == notificationType.TypeId); repository.Update(original, notificationType); }