public ActionResult CreateSolutionType(SolutionTypeViewModel solutionType)
        {
            if (ModelState.IsValid)
            {
                SolutionType newType = new SolutionType();
                newType.Type = solutionType.Type.Trim();
                newType.DateCreated = DateTime.Now;
                try
                {
                    _solutionTypeService.CreateSolutionType(newType);
                    _solutionTypeService.SaveSolutionType();
                }
                catch (Exception ex)
                {
                    return View(solutionType).WithError(ex.Message);
                }

            }
            else
                return View(solutionType).WithError("Invalid data");

            return RedirectToAction("SolutionTypes").WithSuccess("Solution type" + solutionType.Type + " created successfully.");
        }
        public ActionResult EditSolutionType(SolutionTypeViewModel solutionType)
        {
            if (ModelState.IsValid)
            {
                SolutionType type = _solutionTypeService.GetSolutionType(solutionType.ID);
                type.Type = solutionType.Type.Trim();

                try
                {
                    _solutionTypeService.SaveSolutionType();
                }
                catch (Exception ex)
                {
                    return View(solutionType).WithError(ex.Message);
                }

            }
            else
                return View(solutionType).WithError("Invalid Data");

            return RedirectToAction("SolutionTypes").WithSuccess("Solution type " + solutionType.Type + " updated successfully.");
        }