コード例 #1
0
        public IActionResult GetReading(int tenantId, DateTime time)
        {
            var reading = _readingService.GetReadingOfTenant(tenantId, time.AddMonths(-1));

            if (reading == null)
            {
                return(Json("0"));
            }
            else
            {
                return(Json("1"));
            }
        }
コード例 #2
0
 public void InitiateReading(int tenantId, DateTime startDate)
 {
     Reading = _readingService.GetReadingOfTenant(tenantId, startDate);
 }