I'm trying to make a CRUD but my variable NovaGarantia doesn't work and the error appears. Now I'm trying to do the INSERT. Follow bellow my code:
using EDP.GestaoVarejista.MOD;
namespace EDP.GestaoVarejista.DAL.CadastrosGerais;
public class Garantias : Base
{
public int Inserir(Garantia garantia)
{
try
{
using (EDPGestaoVarejistaEntities dbEntities = new EDPGestaoVarejistaEntities())
tb_garantias NovaGarantia = new tb_garantias
{
descrGarantia = garantia.descGarantia
};
}
}
}