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))); }
public HttpResponseMessage GetGaleryByMagazineId(string mGuid) { var galery = magazineService.ApiGetGaleryByMagazineId(mGuid); return(Request.CreateResponse(HttpStatusCode.OK, TheModelFactory.CreateGaleries_ResponseModel(galery))); }