public AllEntityJson GetThisPeriodData(List <TimeSheetValueJson> workHourJsons)
        {
            UnitOfWork           uow                 = new UnitOfWork();
            User                 currUser            = new UserHelper().GetCurrent();
            TimeSheetManager     timesheetManager    = new Domain.TimeSheetManager(uow);
            DisplayPeriodManager displayPeriodMnager = new DisplayPeriodManager(uow);
            DisplayPeriod        displayPeriod       = displayPeriodMnager.GetDisplayPeriod(currUser);
            DateTime             fromDate            = workHourJsons[0].Date;
            DateTime             toDate              = workHourJsons[workHourJsons.Count() - 1].Date;
            var presenceours = timesheetManager.GetThisPeriodPresencHoursByUserId(currUser.ID, fromDate, toDate);
            var workours     = timesheetManager.GetThisPeriodhworkHoursByUserId(currUser.ID, fromDate, toDate);

            return(new HomeEntityAssembler().ToJson(presenceours, workours));
        }
        public AllEntityJson GetThisPeriodDataByUserId(GetThisMonthDataByUserJson json)
        {
            UnitOfWork           uow                 = new UnitOfWork();
            UserManager          userManager         = new UserManager(uow);
            User                 currUser            = userManager.GetByID(Guid.Parse(json.userid));
            TimeSheetManager     timesheetManager    = new Domain.TimeSheetManager(uow);
            DisplayPeriodManager displayPeriodMnager = new DisplayPeriodManager(uow);
            DisplayPeriod        displayPeriod       = displayPeriodMnager.GetDisplayPeriod(currUser);

            DateTime fromDate = json.values[0].Date;
            DateTime toDate   = json.values[json.values.Count() - 1].Date;

            var presenceours = timesheetManager.GetThisPeriodPresencHoursByUserId(currUser.ID, fromDate, toDate);
            var workours     = timesheetManager.GetThisPeriodhworkHoursByUserId(currUser.ID, fromDate, toDate);

            return(new HomeEntityAssembler().ToJson(presenceours, workours));
        }