Exemple #1
0
        public async Task <ActionResult <Response> > GetNroImagen(int Tipo, int Id1, int Id2, int Id3)
        {
            Response response = new Response();
            object   rpta     = new object();

            try
            {
                if (!ModelState.IsValid)
                {
                    return(BadRequest(ModelState));
                }

                rpta = await _commonlogic.GetNroImagen(Tipo, Id1, Id2, Id3);

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