Example #1
0
        public HttpResponseMessage GetGalery_ByMag(string mGuid, Int32 id)
        {
            var galery = galeryService.GetGalery_ByMGuid(mGuid, id);

            if (galery == null)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, "Lo sentimos, no hay galerĂ­a para mostrar."));
            }

            return(Request.CreateResponse(HttpStatusCode.OK, TheModelFactory.CreateGalery_ResponseModel(galery)));
        }