Exemplo n.º 1
0
 public bool Update(UpdateBeerKind item)
 {
     using (Context context = new Context())
     {
         EfBeerKindRepository rep     = new EfBeerKindRepository(context);
         BeerKindConvert      convert = new BeerKindConvert(context);
         return(rep.Update(convert.ToEntity(item)));
     }
 }
Exemplo n.º 2
0
 public ReadBeerKind Add(CreateBeerKind item)
 {
     using (Context context = new Context())
     {
         EfBeerKindRepository rep     = new EfBeerKindRepository(context);
         BeerKindConvert      convert = new BeerKindConvert(context);
         return(convert.ToRead(rep.Add(convert.ToEntity(item))));
     }
 }