public ActionResult Edit(int id = 0)
        {
            var logtime = LogTimeHandler.GetLogTime(id);

            var logtimeModel = LogTimeModelIMapper.MapToLogTimeModel(logtime);

            return(View(logtimeModel));
        }
        public ActionResult Index(int id = 0)
        {
            var model = new LogTimeIndexModel();

            if (id > 0)
            {
                var logtme      = LogTimeHandler.GetLogTime(id);
                var logtmeModel = LogTimeModelIMapper.MapToLogTimeModel(logtme);
                model.List.Add(logtmeModel);
            }
            else
            {
                var logtmeList = LogTimeHandler.GetAllLogTime();
                foreach (var logtme in logtmeList)
                {
                    var logtmeModel = LogTimeModelIMapper.MapToLogTimeModel(logtme);
                    model.List.Add(logtmeModel);
                }
            }
            return(View(model));
        }