public async Task <ActionResult> UploadFont(UploadFontViewModel model) { if (!ModelState.IsValid) { return(View("_UploadFont", model)); } var fontFilePath = SaveFont(model.AttachedFont); await _fontService.CreateAsync(model.FontName, model.FontType, fontFilePath); return(Content("Refresh")); }