public IList <WorkDetail> Get(int id) { WorkDetailData workDetailData = new WorkDetailData(configuration.GetConnectionString("MechanicalContext").ToString()); return(workDetailData.GetWorkDetailsByOrder(id)); }
public void Post([FromBody] WorkDetail workDetail) { WorkDetailData workDetailData = new WorkDetailData(configuration.GetConnectionString("MechanicalContext").ToString()); workDetailData.InsertarDetalleTrabajo(workDetail); }
public WorkDetailController(IConfiguration configuration) { this.configuration = configuration; this.workDetailData = new WorkDetailData(configuration.GetConnectionString("DefaultConnection").ToString()); }