public string AddConcreteIndication(DtoConcreteIndication dtoConcreteIndication) { var concreteIndication = new ConcreteIndication() { Order = new Order() { Id = OrderMethods.Instance.GetOrderByNumber(dtoConcreteIndication.Order.Number).Id }, Indication = new Indication() { Id = IndicationMethods.Instance.GetIndicationByCode(dtoConcreteIndication.Indication.Code).Id } }; return ConcreteIndicationMethods.Instance.InsertConcreteIndication(concreteIndication); }
public string AddConcreteIndication(DtoConcreteIndication dtoConcreteIndication) { var concreteIndication = new ConcreteIndication() { Order = new Order() { Id = OrderMethods.Instance.GetOrderByNumber(dtoConcreteIndication.Order.Number).Id }, Indication = new Indication() { Id = IndicationMethods.Instance.GetIndicationByCode(dtoConcreteIndication.Indication.Code).Id } }; return(ConcreteIndicationMethods.Instance.InsertConcreteIndication(concreteIndication)); }
public bool EditConcreteIndication(DtoConcreteIndication dtoConcreteIndication) { var concreteIndication = new ConcreteIndication() { Id = ConcreteIndicationMethods.Instance.GetConcreteIndicationByCode(dtoConcreteIndication.Code).Id, Code = dtoConcreteIndication.Code, Indication = new Indication() { Id = IndicationMethods.Instance.GetIndicationByCode(dtoConcreteIndication.Indication.Code).Id }, Order = new Order() { Id = ConcreteIndicationMethods.Instance.GetConcreteIndicationByCode(dtoConcreteIndication.Code).Order.Id } }; return(ConcreteIndicationMethods.Instance.UpdateConcreteIndication(concreteIndication)); }
public bool EditConcreteIndication(DtoConcreteIndication dtoConcreteIndication) { var concreteIndication = new ConcreteIndication() { Id = ConcreteIndicationMethods.Instance.GetConcreteIndicationByCode(dtoConcreteIndication.Code).Id, Code = dtoConcreteIndication.Code, Indication = new Indication() { Id = IndicationMethods.Instance.GetIndicationByCode(dtoConcreteIndication.Indication.Code).Id }, Order = new Order() { Id = ConcreteIndicationMethods.Instance.GetConcreteIndicationByCode(dtoConcreteIndication.Code).Order.Id } }; return ConcreteIndicationMethods.Instance.UpdateConcreteIndication(concreteIndication); }