using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyWarehouse.Application.Common { //TODO: Complete 'operation result' scaffolding to return validation problems this way instead of throwing exceptions. //public class AppOperationResult //{ // public bool OperationCompleted => Problems == null | !Problems.Any(); // public IDictionary<string, string[]> Problems { get; } //} //public class AppOperationResult<T> : AppOperationResult //{ // public T Result { get; init; } //} }