public RepositoryActionResult <Direction> InsertDirection(Direction entity) { return(RepositoryActionResultExtensions <Direction, sRecipeContext> .Insert(_ctx, entity )); }
public RepositoryActionResult <User> InsertUser(User entity) { return(RepositoryActionResultExtensions <User, sRecipeContext> .Insert(_ctx, entity )); }
public RepositoryActionResult <MealType> InsertMealType(MealType entity) { return(RepositoryActionResultExtensions <MealType, sRecipeContext> .Insert(_ctx, entity )); }
public RepositoryActionResult <Picture> InsertPicture(Picture entity) { return(RepositoryActionResultExtensions <Picture, sRecipeContext> .Insert(_ctx, entity )); }
public RepositoryActionResult <Ingredient> InsertIngredient(Ingredient entity) { return(RepositoryActionResultExtensions <Ingredient, sRecipeContext> .Insert(_ctx, entity )); }
public RepositoryActionResult <Comment> InsertComment(Comment entity) { return(RepositoryActionResultExtensions <Comment, sRecipeContext> .Insert(_ctx, entity )); }
public RepositoryActionResult <User> DeleteUser(int id) { return(RepositoryActionResultExtensions <User, sRecipeContext> .Delete(_ctx, _ctx.Users .Where(s => s.Id == id) .FirstOrDefault() )); }
public RepositoryActionResult <Direction> DeleteDirection(int id) { return(RepositoryActionResultExtensions <Direction, sRecipeContext> .Delete(_ctx, _ctx.Directions .Where(s => s.Id == id) .FirstOrDefault() )); }
public RepositoryActionResult <Picture> DeletePicture(int id) { return(RepositoryActionResultExtensions <Picture, sRecipeContext> .Delete(_ctx, _ctx.Pictures .Where(s => s.Id == id) .FirstOrDefault() )); }
public RepositoryActionResult <Ingredient> DeleteIngredient(int id) { return(RepositoryActionResultExtensions <Ingredient, sRecipeContext> .Delete(_ctx, _ctx.Ingredients .Where(s => s.Id == id) .FirstOrDefault() )); }
public RepositoryActionResult <User> UpdateUser(User entity) { return(RepositoryActionResultExtensions <User, sRecipeContext> .Update(_ctx, _ctx.Users .Where(s => s.Id == entity.Id) .FirstOrDefault(), entity )); }
public RepositoryActionResult <Direction> UpdateDirection(Direction entity) { return(RepositoryActionResultExtensions <Direction, sRecipeContext> .Update(_ctx, _ctx.Directions .Where(s => s.Id == entity.Id) .FirstOrDefault(), entity )); }
public RepositoryActionResult <Picture> UpdatePicture(Picture entity) { return(RepositoryActionResultExtensions <Picture, sRecipeContext> .Update(_ctx, _ctx.Pictures .Where(s => s.Id == entity.Id) .FirstOrDefault(), entity )); }
public RepositoryActionResult <MealType> UpdateMealType(MealType entity) { return(RepositoryActionResultExtensions <MealType, sRecipeContext> .Update(_ctx, _ctx.MealTypes .Where(s => s.Id == entity.Id) .FirstOrDefault(), entity )); }
public RepositoryActionResult <Ingredient> UpdateIngredient(Ingredient entity) { return(RepositoryActionResultExtensions <Ingredient, sRecipeContext> .Update(_ctx, _ctx.Ingredients .Where(s => s.Id == entity.Id) .FirstOrDefault(), entity )); }