public IActionResult Edit(int id)
        {
            AboutUs abs = _AboutUsRepository.GetAboutUsById(id);

            if (abs == null)
            {
                return(NotFound());
            }
            return(View(abs));
        }
        public IActionResult Edit(int id)
        {
            AboutUs abs = _aboutUsRepository.GetAboutUsById(id);

            if (abs == null)
            {
                return(NotFound());
            }
            var model = _mapper.Map <AboutUs, AboutUsViewModel>(abs);

            ViewBag.Settings = _aboutUsRepository.GetSettings();
            return(View(model));
        }
        public async Task <IActionResult> GetAboutUsById([FromQuery(Name = "id")] long Id)
        {
            try
            {
                if (Id <= 0)
                {
                    return(StatusCode((int)System.Net.HttpStatusCode.BadRequest, "Id not found!"));
                }
                else
                {
                    var result = await _aboutUsRepo.GetAboutUsById(Id);

                    if (result != null)
                    {
                        return(Ok(result));
                    }
                    else
                    {
                        return(NoContent());
                    }
                }
            }
            catch (Exception ex)
            {
                return(StatusCode((int)System.Net.HttpStatusCode.InternalServerError, ex.Message));
            }
        }