public async Task <ActionResult> Delete(int Id)
        {
            var deleteResult = await _departmentsRepository.DeleteAsync(Id);

            ViewData["Message"] = deleteResult.Message;
            ViewData["Success"] = deleteResult.Success;
            return(RedirectToAction(nameof(this.Index)));
        }