Refactor to guid uid

This commit is contained in:
Fergal Moran
2018-05-11 20:24:11 +01:00
parent 5f905d3516
commit d5c9df78cb
31 changed files with 476 additions and 358 deletions

View File

@@ -58,7 +58,7 @@ namespace PodNoms.Api.Controllers {
if (ModelState.IsValid) {
var item = _mapper.Map<PodcastViewModel, Podcast>(vm);
item.AppUser = _applicationUser;
var ret = await _repository.AddOrUpdateAsync(item);
var ret = _repository.AddOrUpdate(item);
await _uow.CompleteAsync();
return new OkObjectResult(_mapper.Map<Podcast, PodcastViewModel>(ret));
}