Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Domain/Resultado.cs @ 262:b87a4875b2b6
ControllerTests: Refactoring.
author | juanjose.montesdeocaarbos |
---|---|
date | Sat, 22 Oct 2011 14:08:30 -0300 |
parents | b9850b647a4e |
children |
line wrap: on
line source
using System; using System.Collections.Generic; namespace AltNetHispano.Agendas.Domain { public class Resultado { public Resultado(bool succeful, string message) { Succeful = succeful; Message = message; } public bool Succeful { get; private set; } public string Message { get; internal set; } } public class ResultadoAdd : Resultado { public Guid Id { get; set; } public string Nombre { get; set; } public ResultadoAdd(bool succeful, string message, Guid id, string nombre) : base(succeful, message) { Id = id; Nombre = nombre; } public ResultadoAdd(string message) : base(false, message) { } } public class EventoResultado : Resultado { public EventoResultado(bool succeful, string message, IEnumerable<TrackLog> warnings) : base(succeful, message) { Warnings = warnings ?? new List<TrackLog>(); } public IEnumerable<TrackLog> Warnings { get; set; } } }