refactoring

This commit is contained in:
2016-07-27 11:08:06 +02:00
parent 3e7947b79e
commit ae32fc0ede
3 changed files with 40 additions and 35 deletions

View File

@ -96,7 +96,7 @@ namespace Yavsc.Controllers
);
var pro = _context.Performers.Include(
x => x.Performer).FirstOrDefault(
x => x.PerfomerId == id
x => x.PerformerId == id
);
if (pro == null)
return HttpNotFound();
@ -107,7 +107,7 @@ namespace Yavsc.Controllers
return View(new BookQuery(new Location(),DateTime.Now.AddHours(4))
{
PerformerProfile = pro,
PerformerId = pro.PerfomerId,
PerformerId = pro.PerformerId,
ClientId = userid,
Client = user
});
@ -129,7 +129,7 @@ namespace Yavsc.Controllers
u => u.Performer
).Include( u => u.Performer.Devices)
.FirstOrDefault(
x => x.PerfomerId == command.PerformerId
x => x.PerformerId == command.PerformerId
);
command.PerformerProfile = pro;
var user = await _userManager.FindByIdAsync(