public IHttpActionResult GetUsers() { var appBlock = new SqlDbConnectionBaseClass(); SqlParameter[] parameters = { new SqlParameter("@userName", SqlDbType.NVarChar) { Value = "" }, new SqlParameter("@password", SqlDbType.NVarChar) { Value = "" } }; var result = appBlock.ExecuteProcedureForSelect("SpCheckUserLogin", parameters, ""); var json = JsonConvert.SerializeObject(result); var listData = JsonConvert.DeserializeObject <List <AuthenticateUserReturn> >(json); return(Ok(listData)); }