Esempio n. 1
0
        public IList <WorkDetail> Get(int id)
        {
            WorkDetailData workDetailData =
                new WorkDetailData(configuration.GetConnectionString("MechanicalContext").ToString());

            return(workDetailData.GetWorkDetailsByOrder(id));
        }
Esempio n. 2
0
        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());
 }