Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature 25 edit options #101

Merged
merged 9 commits into from
Apr 16, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CRUDRecipeEF.BL/Services/RecipeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public async Task<string> AddRecipe(RecipeDTO recipeAddDTO)
public async Task UpdateRecipe (RecipeDTO recipeDTO, string recipeName)
{
var recipe = await GetRecipeByNameIfExists(recipeDTO.Name);

recipe.Name = recipeName;
YannisAm marked this conversation as resolved.
Show resolved Hide resolved
_mapper.Map<RecipeDTO, Recipe>(recipeDTO);

Expand Down
3 changes: 2 additions & 1 deletion CRUDRecipeEF.DAL/DTOs/MenuAddDTO.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using CRUDRecipeEF.BL.DTOs;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace CRUDRecipeEF.DAL.DTOs
Expand Down
3 changes: 2 additions & 1 deletion CRUDRecipeEF.DAL/DTOs/RecipeAddDTO.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using CRUDRecipeEF.DAL.DTOs;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace CRUDRecipeEF.BL.DTOs
Expand Down
3 changes: 2 additions & 1 deletion CRUDRecipeEF.DAL/DTOs/RecipeCategoryAddDTO.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using CRUDRecipeEF.BL.DTOs;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
Expand Down
2 changes: 0 additions & 2 deletions CRUDRecipeEF.PL/Menus/RecipeMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
using CRUDRecipeEF.BL.Services;
using CRUDRecipeEF.DAL.DTOs;
using Microsoft.Extensions.Logging;
using CRUDRecipeEF.BL.Helpers;
using CRUDRecipeEF.DAL.Entities;

namespace CRUDRecipeEF.PL.Menus
{
Expand Down