notification target

This commit is contained in:
2017-05-17 10:41:29 +02:00
parent 3a7c464ce6
commit baca1d6253
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 );