IResult.cs 631 B

12345678910111213141516171819202122232425
  1. using System.Collections.Generic;
  2. namespace Quadarax.Foundation.Core.Data.Interface.Entity
  3. {
  4. /// <summary>
  5. /// Represents structure of result state
  6. /// </summary>
  7. public interface IResult
  8. {
  9. /// <summary>
  10. /// Gets if result is logically success
  11. /// </summary>
  12. bool IsSuccess { get; }
  13. /// <summary>
  14. /// Collection of error items
  15. /// </summary>
  16. public IEnumerable<IError> Errors { get; }
  17. /// <summary>
  18. /// Returns result value
  19. /// </summary>
  20. /// <returns>Value</returns>
  21. public object GetValue();
  22. }
  23. }