public async Task <IActionResult> CreateAchievement(Achievement model, IFormFile file) { var ach = await _service.MakeAchievement(model); var achId = ach.Id; await UploadThreadImage(file, achId); return(RedirectToAction("Index")); }
public async Task <IActionResult> CreateAchievement(Achievement model, IFormFile file) { var ach = await _service.MakeAchievement(model); var achId = ach.Id; await UploadThreadImage(file, achId); return(RedirectToAction("Index")); }