public ActionResult PerUserContract(UserContractLogModel userContractLogModel)
        {
            var userContractLogList =
                db.UserContractLogs.Where(
                    row => row.UserContract.UserId == userContractLogModel.UserId && row.DateTime >= userContractLogModel.StartDate && row.DateTime <= userContractLogModel.EndDate).ToList();
            userContractLogModel.UserContractLogs = userContractLogList;

            return View(userContractLogModel);
        }
        public ActionResult PerUserContract(Guid? userContractId, Guid? userId, DateTime? startDate, DateTime? endDate,
            string browserProperty)
        {
            if (!userId.HasValue)
                userId = User.Id;

            var userContractLogs =
                db.UserContractLogs.Where(
                    row => row.UserContract.UserId == userId /*&& row.DateTime >= startDate && row.DateTime <= endDate*/);
            if (userContractId.HasValue)
            {
                userContractLogs = userContractLogs.Where(row => row.UserContractId == userContractId);
            }
            var model = new UserContractLogModel();

            model.UserContractLogs = userContractLogs.ToList();
            model.StartDate = startDate;
            model.EndDate = endDate;
            model.UserId = userId.Value;
            model.UserContractId = userContractId;

            return View(model);
        }