public async Task <IActionResult> Delete(DeleteOperatingLocationViewModel model)
        {
            var success = await this.operatingLocationsService.RemoveAsync(model.Id);

            if (!success)
            {
                return(this.RedirectToAction("Error", "Home")); // TODO: redirect
            }

            return(this.RedirectToAction("All", "OperatingLocations"));
        }
        public IActionResult Delete(int id)
        {
            OperatingLocationServiceModel operatingLocation = this.operatingLocationsService.GetById(id);

            if (operatingLocation.Town == null || operatingLocation.Address == null)
            {
                return(this.BadRequest());
            }

            var model = new DeleteOperatingLocationViewModel
            {
                Id      = operatingLocation.Id,
                Town    = operatingLocation.Town,
                Address = operatingLocation.Address,
                //TODO: Add departments, employees and service tables on delete view
            };

            return(this.View(model));
        }