﻿using System.Collections.Generic;

namespace EzApp.Core.ActionResult
{
    public class EzActionResult
        : IEzActionResult
    {
        public static readonly EzActionResult Success;
        public static readonly EzActionResult Failure;

        public ICollection<IEzActionResultError> Errors { get; set; }

        public virtual EzActionResultStatus StatusCode { get; set; }

        public string Status
        {
            get
            {
                return StatusCode.ToString();
            }
        }

        public string Message { get; set; }
    }
}
