public IActionResult Create(Contact contact) { if (ModelState.IsValid) { contact.Photo = Path.GetFileName(contact.PhotoFile.FileName); repository.UploadFileToBlob(contact.PhotoFile); repository.CreateOrUpdate(contact); repository.SendMessageToQueue(contact); return(RedirectToAction("index", "contact")); } return(View()); }