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"));
            }
        }
Exemplo n.º 2
0
 public void InitiateReading(int tenantId, DateTime startDate)
 {
     Reading = _readingService.GetReadingOfTenant(tenantId, startDate);
 }