public IActionResult GetAll()
 {
     try
     {
         RegisteredUserRecipeCore registeredUserRecipeCore = new RegisteredUserRecipeCore(dbContext);
         return(Ok(registeredUserRecipeCore.GetAll()));
     }
     catch (Exception ex)
     {
         return(StatusCode((int)HttpStatusCode.InternalServerError, ex));
     }
 }
        public IActionResult Delete([FromRoute] int id)
        {
            try
            {
                RegisteredUserRecipeCore registeredUserRecipeCore = new RegisteredUserRecipeCore(dbContext);

                registeredUserRecipeCore.Delete(id);

                return(Ok("ingredient Word Deleted Succesfully"));
            }
            catch (Exception ex)
            {
                return(StatusCode((int)HttpStatusCode.InternalServerError, ex));
            }
        }
        public IActionResult Create([FromBody] RegisteredUserRecipe registeredUserRecipe)
        {
            try
            {
                RegisteredUserRecipeCore registeredUserRecipeCore = new RegisteredUserRecipeCore(dbContext);

                registeredUserRecipeCore.Create(registeredUserRecipe);

                return(Ok("registeredUserRecipe  Added Succesfully"));
            }
            catch (Exception ex)
            {
                return(StatusCode((int)HttpStatusCode.InternalServerError, ex));
            }
        }