Skip to content

Back-end for "API Produtos" - Asp.Net Core Web API, Entity Framework and Sql Server

Notifications You must be signed in to change notification settings

lucasbailo/back-end-api-produtos

Repository files navigation

Welcome to a Asp.Net (C#) Project! 👋

Backend for API Produtos

Some code that I'm proud of

[HttpPut("{id}")]
public async Task<ActionResult> PutProduto(int id, ProdutoClass produto)
{
    if (id != produto.ID)
    {
        return BadRequest();
    }

    _produtoClassContext.Entry(produto).State = EntityState.Modified;
    try
    {
        await _produtoClassContext.SaveChangesAsync();
    }
    catch (DbUpdateConcurrencyException)
    {
        throw;
    }
    return Ok();
}

Built with

  • C#
  • Asp.Net Core Web API
  • Entity Framework
  • Sql Server

You Can

  • Use local database;
  • Use all CRUD functions;
  • Connect with front-end.

Front-End repository: See Front-End!

Author

About

Back-end for "API Produtos" - Asp.Net Core Web API, Entity Framework and Sql Server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages