view Agendas/trunk/src/Agendas.Blog/Impl/PostWriterFactory.cs @ 89:24e9488ac152

mapeo de property UrlInvitacion entre viewmodel y entity
author jorge.rowies
date Tue, 31 May 2011 16:31:24 -0300
parents a300394dbabe
children 3027c64344bd
line wrap: on
line source

using AltNetHispano.Agendas.Domain;

namespace Agendas.Blog.Impl
{
  public class PostWriterFactory : IPostWriterFactory
  {
    public IPostWriter GetPostWriter(Accion accion)
    {
      switch (accion)
      {
        case Accion.Agendar:
          return new AgendarReunionPostWriter();
        case Accion.Publicar:
          return new PublicarReunionPostWriter();
        default:
          return new NullObjectPostWriter();
      }
    }
  }
}