I believe writing just asp.net web api does't make any sense. Please provide some context to asnwer your question