Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.04 KB

README.md

File metadata and controls

47 lines (38 loc) · 1.04 KB

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