Ejemplo n.º 1
0
        public PlatilloEntity createPlatillo(Platillo pl)
        {
            PlatilloEntity pe = AParser.ToPlatilloEntity(pl);

            String value = Astorage.InsertOrUpdate("FoodTable", pe).Result;

            return(pe);
        }
Ejemplo n.º 2
0
        public PlatilloEntity ToPlatilloEntity(Platillo pl)
        {
            PlatilloEntity ep = new PlatilloEntity();

            ep.PartitionKey = pl.Name;
            ep.RowKey       = "01";
            ep.Description  = pl.Description;
            ep.Price        = pl.Price;
            return(ep);
        }
Ejemplo n.º 3
0
        public Platillo ToPlatillo(PlatilloEntity ep)
        {
            Platillo pl = new Platillo();

            if (!(ep == null))
            {
                pl.Name        = ep.PartitionKey;
                pl.Description = ep.Description;
                pl.Price       = ep.Price;
            }
            return(pl);
        }