How To Handle Exception In .net Core