public IActionResult TaskDetailForDash() { CleaningSoftwareLogicContext dbcontext = new CleaningSoftwareLogicContext(); var details = this.cleaningSoftwareLogicContext.CleanerDetail .GroupJoin(this.cleaningSoftwareLogicContext.CleaningTaskDetail, c => c.Id, c => c.CleanerDetailId, (CleanerDetail, CleaningTaskDetail) => new { cleanerName = CleanerDetail.CleanerDetailName, CleaningTask = CleaningTaskDetail.Count() }); return(new JsonResult(details)); }
public CleaningServiceProviderCRUDController(CleaningSoftwareLogicContext cleaningSoftwareLogicContext) { this.cleaningSoftwareLogicContext = cleaningSoftwareLogicContext; }
public CleaningDashboardController(CleaningSoftwareLogicContext cleaningSoftwareLogicContext) { this.cleaningSoftwareLogicContext = cleaningSoftwareLogicContext; }