public IActionResult DeleteUserPhoto(long id) { UserPhoto a = Photo_repo.Find(id); if (a == null) { return(NotFound()); } Photo_repo.Delete(a); return(Ok()); }