public TbSeAdjunto Adjunto(AdjuntoViewModel domain) { TbSeAdjunto aj = new TbSeAdjunto { IdMensaje = domain.IdMensaje, Ruta = domain.Ruta, Estado = domain.Estado }; return(aj); }
public TbSeAdjunto viewToModelAdjunto(int id, string ruta) { AdjuntoViewModel domain = new AdjuntoViewModel { IdMensaje = id, Ruta = ruta, Estado = true }; return(Adjunto(domain)); }