public ActionResult Save(CostCenterVM view)
        {
            ModelState.Remove("Id");
            if (ModelState.IsValid)
            {
                if (view.Id == 0)
                {
                    _costCenterRepository.AddToDatabase(view.MapToModel());
                }
                else
                {
                    _costCenterRepository.UpdateInDatabase(view.MapToModel(), view.Id);
                }

                _costCenterRepository.Save();
            }
            return(RedirectToAction("Index"));
        }