public bool Delete(long id, string updatedBy) { var customerDelete = _uomRepository.GetById(id); customerDelete.IsActive = false; customerDelete.UpdatedBy = updatedBy; return(_uomRepository.Update(customerDelete)); }
public IHttpActionResult Get([FromODataUri] System.Guid key) { logger.Trace("Call UomController Get by Id"); var query = uomRepository.GetById(key); return(Ok(query)); }
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)); }