public async Task <ActionResult> Create(CreateLocVM model)
        {
            if (ModelState.IsValid)
            {
                Locations newloc = new Locations()
                {
                    LocName     = model.LocationName,
                    Notes       = model.Notes,
                    DateCreated = DateTimeOffset.Now
                };

                //try
                //{
                //    await _locationService.Create(newloc);

                //    TempData.Add("SuccessMsg", "The new provider was created successfully!");
                //}
                //catch (Exception ex)
                //{
                //    // Add message to the user
                //    Console.WriteLine("An error has occurred. Message: " + ex.ToString());
                //    throw;
                //}
                await _locationService.Create(newloc);

                return(RedirectToAction("Index"));
            }

            return(View(model));
        }
        // GET: Locations/Create
        public ActionResult Create()
        {
            CreateLocVM model = new CreateLocVM();

            //ViewBag.ProvId = new SelectList(db.Providers, "ProvId", "ProvName");
            return(View(model));
        }