public async Task <IActionResult> Create([Bind("Locations,Id")]  BLL.App.DTO.Location location)
        {
            if (ModelState.IsValid)
            {
                await _bll.Location.AddAsync(location);

                await _bll.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(location));
        }
        public async Task <IActionResult> Edit(int id, [Bind("Locations,Id")]  BLL.App.DTO.Location location)
        {
            if (id != location.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                _bll.Location.Update(location);
                await _bll.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(location));
        }