public IActionResult Get() { var test = testDomain.GetFirst(); //Entity framework var test1 = testDomain.GetbyId(Constants.sampleId); //Dapper return(Ok()); }
// GET api/sample public IHttpActionResult Get() { try { SampleTable st = testDomain.GetFirst(); return(Ok(st)); } catch (Exception ex) { return(InternalServerError(ex)); } }