Example #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)));
     }
 }
Example #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))));
     }
 }