public ActionResult Delete([DataSourceRequest] DataSourceRequest request, RecipeAdminInputModel model)
        {
            if (model != null)
            {
                this.recipes.Delete(model.Id);
            }

            return this.Json(new[] { model }.ToDataSourceResult(request, this.ModelState));
        }
        public ActionResult Edit([DataSourceRequest] DataSourceRequest request, RecipeAdminInputModel model)
        {
            if (model != null && this.ModelState.IsValid)
            {
                var userId = this.User.Identity.GetUserId();
                this.recipes.Update(model.Id, userId, model.Title, model.Preparation, model.Votes);
            }

            return this.Json(new[] { model }.ToDataSourceResult(request, this.ModelState));
        }