Beispiel #1
0
        public async Task <ActionResult <Response> > ListPublProducto(FiltroProducto filtroProducto)
        {
            object rpta = new object();

            try
            {
                filtroProducto = (FiltroProducto)BusinessLogic.Utilities.AuxiliarMethods.ValidateParameters(filtroProducto, filtroProducto.GetType());
                rpta           = await _muratserviceslogic.ListPublProducto(filtroProducto);

                if (rpta == null)
                {
                    return(NotFound());
                }
            }
            catch (Exception e)
            {
                Response response = new Response();
                response.Status  = Constant.Error500;
                response.Message = e.Message;
                return(Ok(response));
            }
            return(Ok(rpta));
        }