public PlatilloEntity createPlatillo(Platillo pl) { PlatilloEntity pe = AParser.ToPlatilloEntity(pl); String value = Astorage.InsertOrUpdate("FoodTable", pe).Result; return(pe); }
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); }
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); }