mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-22 09:18:08 +00:00
Removed build warnings in API
This commit is contained in:
@@ -29,7 +29,7 @@ namespace PodNoms.Api.Controllers {
|
||||
this._unitOfWork = unitOfWork;
|
||||
}
|
||||
[HttpGet]
|
||||
public async Task<ActionResult<ProfileViewModel>> Get() {
|
||||
public ActionResult<ProfileViewModel> Get() {
|
||||
var result = _mapper.Map<ApplicationUser, ProfileViewModel>(_applicationUser);
|
||||
return new OkObjectResult(result);
|
||||
}
|
||||
|
||||
@@ -55,9 +55,8 @@ namespace PodNoms.Api.Persistence {
|
||||
select p.Slug);
|
||||
}
|
||||
item.TemporaryImageUrl = $"standard/podcast-image-{Randomisers.RandomInteger(1, 16)}.png";
|
||||
_context.Podcasts.Add(item);
|
||||
await _context.Podcasts.AddAsync(item);
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
public async Task<int> DeleteAsync(int id) {
|
||||
|
||||
Reference in New Issue
Block a user