public async Task <ActionResult> TagPhoto(int id, String[] tags) { Photo _Photo = await photoRepository.FindAsync(id); if (_Photo == null) { return(HttpNotFound()); } await photoRepository.AddPhotoTagsAsync(id, tags); return(Json(new { success = true })); }