Example #1
0
 public Ingredient Save(Ingredient data)
 {
     //return DataProvider.Save(data) as Ingredient;
     return null;
 }
 private static Ingredient LoadIngredient(DbDataReader reader)
 {
     var ingredient = new Ingredient
     {
         IngredientID = (Int64)reader["id"],
         Title = (string)reader["title"],
         UrlKey = (string)reader["urlkey"],
         Description = (string)reader["description"],
         CreatedDate = (DateTime)reader["created_date"],
         CreatedBy = (Int64)reader["createdby"],
         ModifiedDate = (DateTime)reader["modified_date"],
         ModifiedBy = (Int64)reader["modifiedby"]
     };
     return ingredient;
 }