C# Web API Development

21 hours
C# Intermediate .NET

Build production-ready C# applications and RESTful Web APIs using ASP.NET. This hands-on course covers core C# programming, object-oriented design, and debugging, then moves into creating Web APIs with full CRUD functionality, structured logging with Serilog, JSON data handling, and asynchronous programming so you can develop, test, and maintain responsive, non-blocking applications and APIs.

What You'll Learn

By the end of this course, you will be able to:

  • Set up and run C# console applications using Visual Studio
  • Apply object-oriented concepts including classes, constructors, namespaces, and method overloading
  • Debug applications using breakpoints, Watch Window, and tracepoints
  • Create ASP.NET Web API projects with controllers, routes, and full CRUD operations
  • Implement structured logging with Serilog and manage JSON-based data with System.Text.Json
  • Write asynchronous code using async/await and manage concurrent HTTP requests with HttpClient
  • Compare multithreading and asynchronous programming models for responsive application design

Requirements

  • Basic familiarity with programming concepts is helpful but not required
  • Access to a C# development IDE such as Visual Studio

Audience

  • Aspiring C# Developers
  • Software Engineers and Application Developers
  • Technical Analysts and QA Engineers
  • Anyone interested in building C# applications and Web APIs

Topics

C# Fundamentals

  • Setting up and running a C# console application in Visual Studio
  • Using C# data types and declaring variables
  • Applying operators and expressions for calculations and logic
  • Writing conditional statements (if, else, switch)
  • Implementing loop structures (for, foreach, while, do-while)
  • Declaring and using arrays
  • Defining classes and objects
  • Writing methods and using constructors, including constructor overloading
  • Organizing code with namespaces and the using directive
  • Applying object-oriented concepts: encapsulation, reusability, and method overloading

Debugging and Error Handling

  • Debugging C# applications with breakpoints, Watch Window, and tracepoints
  • Handling exceptions with try-catch-finally and throw
  • Best practices for writing maintainable and testable code

Web API Development

  • Creating ASP.NET Web API projects
  • Adding controllers and defining routes
  • Implementing CRUD operations (GET, POST, PUT, DELETE)
  • Testing API endpoints using the Insomnia REST client
  • Debugging and validating end-to-end API functionality

Logging and File Handling

  • Implementing structured logging with Serilog
  • Adding contextual information to logs for diagnostics
  • Reading from and writing to files using streams
  • Serializing and deserializing objects with System.Text.Json
  • Managing JSON-based data repositories

Asynchronous Programming and Concurrency

  • Writing asynchronous code using async and await
  • Using HttpClient to make API requests
  • Managing multiple asynchronous requests concurrently
  • Understanding multithreading fundamentals and concurrency concepts
  • Comparing multithreading and asynchronous programming models
Training Options
Number of Participants
Training Type

per participant

This course requires a minimum of 4 participants. Contact us for custom pricing for smaller groups.

Course Features

  • Expert instruction
  • Interactive lectures
  • Hands-on labs and exercises
  • Comprehensive course materials
  • Lifetime access to materials

Request Training Quote

Course
Participants
Training Type
Price per Participant

Request Received!

Thank you for your interest!

We'll contact you shortly with a detailed quote for C# Web API Development.