Ejemplo n.º 1
0
        /// <summary>
        /// Converts a GDLE precursor to ACE cookbook
        /// </summary>
        public static bool TryConvert(Models.RecipePrecursor input, out CookBook result)
        {
            try
            {
                result = new CookBook();

                result.RecipeId = input.RecipeId ?? 0;

                result.SourceWCID = input.Tool;
                result.TargetWCID = input.Target;

                return(true);
            }
            catch
            {
                result = null;
                return(false);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Converts ACE cookbook to GDLE precursor
        /// </summary>
        public static bool TryConvert(CookBook input, out Models.RecipePrecursor result)
        {
            try
            {
                result = new Models.RecipePrecursor();

                result.RecipeId = input.RecipeId;

                result.Tool   = input.SourceWCID;
                result.Target = input.TargetWCID;

                return(true);
            }
            catch
            {
                result = null;
                return(false);
            }
        }