public static MaterialStockPrimitive GetPrimitiveCopy(this MaterialStockPrimitive primitiveToCopy)
        {
            if (primitiveToCopy == null) return null;

                MaterialStockPrimitive primitive = new MaterialStockPrimitive();

                primitive.Id = primitiveToCopy.Id;

                primitive.Material_Id = primitiveToCopy.Material_Id;

                primitive.Amount = primitiveToCopy.Amount;

                primitive.Deleted = primitiveToCopy.Deleted;

                primitive.Deactivated = primitiveToCopy.Deactivated;

                return primitive;
        }
        public static MaterialStockPrimitive GetPrimitive(this MaterialStock entity)
        {
            MaterialStockPrimitive primitive = new MaterialStockPrimitive();

                primitive.Id = entity.Id;

                primitive.Material_Id = entity.Material_Id;

                primitive.Amount = entity.Amount;

                primitive.Deleted = entity.Deleted;

                primitive.Deactivated = entity.Deactivated;

                return primitive;
        }
 /// <summary>
 /// Updates the information about material in stock.
 /// </summary>
 /// <param name="materialStockPrimitive">The material stock primitive.</param>
 public void UpdateMaterialStock(MaterialStockPrimitive materialStockPrimitive)
 {
     try
       {
     throw new NotImplementedException();
       }
       catch (Exception e)
       {
     throw new FaultException<ExceptionDetail>(new ExceptionDetail(e), e.Message);
       }
 }