public ActionResult UploadFont(UploadFontViewModel model) { if (!ModelState.IsValid) { return(View("_UploadFont", model)); } var fontFilePath = SaveFont(model.AttachedFont, nameof(UploadFont)); var fontId = _fontService.Create(model.FontName, model.FontType, fontFilePath); return(this.Content("Refresh")); }