refactoring
This commit is contained in:
parent
a983b0fdc4
commit
b828b06904
10 changed files with 125 additions and 26 deletions
|
|
@ -5,13 +5,13 @@ using Microsoft.Extensions.Localization;
|
|||
|
||||
namespace Yavsc.ApiControllers
|
||||
{
|
||||
using YavscLib;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Security.Claims;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Models;
|
||||
using Services;
|
||||
using Yavsc.Interfaces.Workflow;
|
||||
using Yavsc.Models.Haircut;
|
||||
using Yavsc.Resources;
|
||||
|
||||
|
|
@ -54,8 +54,8 @@ namespace Yavsc.ApiControllers
|
|||
var now = DateTime.Now;
|
||||
var result = _context.HairCutQueries.Where(
|
||||
q=>q.ClientId == uid
|
||||
&& q.EventDate > now
|
||||
&& q.Status == QueryStatus.Inserted
|
||||
&& q.EventDate > now
|
||||
&& q.Status == QueryStatus.Inserted
|
||||
);
|
||||
return Ok(result);
|
||||
}
|
||||
|
|
@ -73,4 +73,4 @@ namespace Yavsc.ApiControllers
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue