public async Task <ActionResult> Create(ServiceViewModelCreate serviceViewModelCreate) { imageFileValidator(serviceViewModelCreate); if (ModelState.IsValid) { imageFileSaver(serviceViewModelCreate); var isAdministrator = User.IsInRole("Administrator"); await _serviceManager.AddAsync(serviceViewModelCreate, isAdministrator); return(RedirectToAction("Index")); } serviceViewModelCreate.ServiceCategories = new SelectList(await _serviceCategoryManager.GetAllAsync(), "Id", "Name"); return(View(serviceViewModelCreate)); }