Skip to content

unosquare/tubular-dotnet

Repository files navigation

NuGet Quality Gate Status NuGet version

Tubular DotNet

Tubular provides .NET Framework and .NET Core Library to create REST service to use with Tubular Angular Components easily with any WebApi library (ASP.NET Web API for example).

Please visit the Tubular GitHub Page to learn how quickly you can start coding. See Related projects below to discover more Tubular libraries and backend solutions.

Installation

PM> Install-Package Tubular.ServerSide

Sample

The following snippet shows how to use Tubular Helper to create a basic response grid using Entity Framework and ASP.NET Web API.

 [RoutePrefix("api/users")]
 public class UsersController : ApiController
 {
     [HttpPost, Route("paged")]
     public IHttpActionResult GridData([FromBody] GridDataRequest request)
     {
         using (var context = new SampleDbContext(false)) {
             return Ok(request.CreateGridDataResponse(context.SystemUsers));
         }
     }
 }