nettoyages

This commit is contained in:
2017-07-13 01:46:06 +02:00
parent d99f121efb
commit 4ab22d0e6a
2 changed files with 3 additions and 8 deletions

View File

@ -244,14 +244,14 @@ Le client final: {clientFinal}
if (ModelState.IsValid)
{
_logger.LogInformation("le Model _est_ valide.");
var pro = _context.Performers.Include(
u => u.Performer
).Include(u => u.Performer.Devices)
.FirstOrDefault(
x => x.PerformerId == model.PerformerId
);
using (var trans = _context.Database.BeginTransaction())
{
if (taintIds != null)
{
@ -286,19 +286,15 @@ Le client final: {clientFinal}
_context.HairCutQueries.Add(model);
var brusherProfile = await _context.BrusherProfile.SingleAsync(p => p.UserId == pro.PerformerId);
model.Client = await _context.Users.SingleAsync(u => u.Id == model.ClientId);
model.SelectedProfile = brusherProfile;
await _context.SaveChangesAsync(uid);
trans.Commit();
}
_logger.LogInformation("la donnée _est_ sauvée.");
var yaev = model.CreateNewHairCutQueryEvent(_localizer);
MessageWithPayloadResponse grep = null;
if (pro.AcceptPublicContact)
{
if (pro.AcceptNotifications)
{
if (pro.Performer.Devices.Count > 0)

View File

@ -34,7 +34,6 @@ namespace Yavsc.Helpers
using Microsoft.Data.Entity;
using Microsoft.AspNet.Identity.EntityFramework;
using Yavsc.Services;
using Newtonsoft.Json;
using Google.Apis.Services;
using Google.Apis.Compute.v1;