Exemple #1
0
        /// <summary>
        /// Function to find an entity by description .
        /// </summary>
        /// <param name="description">entity's description</param>
        /// <returns></returns>
        public ApiResponse FindByDescription(string description)
        {
            ApiResponse response = new ApiResponse();

            try
            {
                response.Text = $"Entity with this description < {description} > was found . \n" +
                                $"{Serialization.Serizlize(Processor.FindByDescription(description))}";
                response.Result = true;

                return(response);
            }
            catch (Exception ex)
            {
                response.Result = false;
                response.Text   = ex.Message;

                return(response);
            }
        }