public long AddLineItem(object obj)
        {
            var objModel = JObject.Parse(obj.ToString());

            var deliveryRequest = new DeliveryRequestLineItem();

            deliveryRequest = objModel.ToObject <DeliveryRequestLineItem>();

            return(_deliveryRequestLineItemRepository.Add(deliveryRequest));
        }
 public long Add(DeliveryRequestLineItem obj)
 {
     try
     {
         _deliveryRequestLineItemRepository.Add(obj);
         return(obj.Id);
     }
     catch (Exception ex)
     {
         throw;
     }
 }