I', new started to use async await method, i want my saved id back after successfully saved data. How can i do it with in one method only? currently i'm using this but it can't work...
var success = await _context.SaveChangesAsync() > 0;
return success ? User.UserID : Guid.Empty;
simply want to get inserted NewGuid for insert(map another entity with it) in another my OTP log Table.