public CuisineBTO UpdateCuisine(CuisineBTO cuisineBto) { CuisineDTO cuisine = new CuisineDTO(); if (cuisineBto != null) { cuisine = cuisineRepository.Update(cuisineBto.BTOToCuisineDomain().ToDTO()); return(cuisine?.DTOToCuisineDomain().ToBTO() ?? null); } return(null); }
public CuisineBTO AddCuisine(CuisineBTO cuisineBto) { CuisineDTO cuisine = new CuisineDTO(); if (cuisineBto != null) { cuisine = cuisineRepository.Create(cuisineBto.BTOToCuisineDomain().ToDTO()); return(cuisine.DTOToCuisineDomain().ToBTO()); } return(null); }