notification target

This commit is contained in:
Paul Schneider 2017-05-17 10:41:29 +02:00
commit 955752a184
6 changed files with 2234 additions and 23 deletions

View file

@ -186,6 +186,9 @@ namespace Yavsc.Controllers
if (ModelState.IsValid)
{
// Une prestation pour enfant ou homme inclut toujours la coupe.
if (model.Prestation.Gender != HairCutGenders.Women)
model.Prestation.Cut = true;
if (model.Location!=null) {
var existingLocation = await _context.Locations.FirstOrDefaultAsync( x=>x.Address == model.Location.Address
&& x.Longitude == model.Location.Longitude && x.Latitude == model.Location.Latitude );