Skip to content

Commit

Permalink
Roslyn comment
Browse files Browse the repository at this point in the history
Roslyn comment
  • Loading branch information
Oktawian-L committed Nov 9, 2019
1 parent 7f77f09 commit 5bf6fe9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions SubitonAPI/SubitonAPI/Controllers/PhotosController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@ public PhotosController(DataContext context, IUserRepository userRepository, IMa
[HttpPost]
public async Task<ActionResult> AddPhotoForUser(int userId, PhotoCreateDTO photo)
{
_context.Photos.Add(photo);
/*_context.Photos.Add(photo);
await _context.SaveChangesAsync().ConfigureAwait(true);
if (photo == null)
throw new ArgumentNullException(nameof(photo));
return CreatedAtAction("GetPhoto", new { id = photo.Id }, photo);
return CreatedAtAction("GetPhoto", new { id = photo.Id }, photo);*/
return Ok();
}


Expand Down
1 change: 0 additions & 1 deletion SubitonAPI/SubitonAPI/Controllers/UsersController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public async Task<IActionResult> PutUser(int id, UserUpdateDTO userUpdate)
}
}

return NoContent();
}
/*
// POST: api/Users
Expand Down

0 comments on commit 5bf6fe9

Please sign in to comment.