public ActionResult CreatePeriod(PeriodModel model)
        {
            if (ModelState.IsValid)
            {
                model.CreatedBy = User.Identity.GetUserName();
                var result = _ratMgr.CreatePeriod(model);
                if (result == true)
                {
                    TempData["message"] = $"Period{model.PeriodName} was successfully added!";
                    return(RedirectToAction("Index"));
                }
            }

            return(View(model));
        }