コード例 #1
0
        public bool Delete(long id, string updatedBy)
        {
            var customerDelete = _uomRepository.GetById(id);

            customerDelete.IsActive  = false;
            customerDelete.UpdatedBy = updatedBy;
            return(_uomRepository.Update(customerDelete));
        }
コード例 #2
0
        public IHttpActionResult Get([FromODataUri] System.Guid key)
        {
            logger.Trace("Call UomController Get by Id");

            var query = uomRepository.GetById(key);

            return(Ok(query));
        }
コード例 #3
0
        public IHttpActionResult GetUom([FromODataUri] System.Guid key)
        {
            logger.Trace("Call OrderLineController GetUom");

            var orderLine = orderLineRepository.GetById(key);

            if (orderLine == null)
            {
                return(NotFound());
            }

            var uom = uomRepository.GetById(orderLine.UomId);

            return(Ok(uom));
        }