예제 #1
0
        public HttpResponseMessage GetGaleries_ByMag(string mGuid)
        {
            var galeries = galeryService.GetGaleries_ByMGuid(mGuid);

            if (galeries.Count == 0)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, "Lo sentimos, no hay galerías para mostrar."));
            }

            return(Request.CreateResponse(HttpStatusCode.OK, TheModelFactory.CreateGaleries_ResponseModel(galeries)));
        }
예제 #2
0
        public HttpResponseMessage GetGaleryByMagazineId(string mGuid)
        {
            var galery = magazineService.ApiGetGaleryByMagazineId(mGuid);

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