public IHttpActionResult GetServices() { var mongoInstance = MongoConnection.Instance; ObjectParameter output = new ObjectParameter("responseMessage", typeof(string)); var SQLServices = db.PR_GetServices().ToList(); List <ServiciosSQLModel> services = new List <ServiciosSQLModel>(); foreach (PR_GetServices_Result service in SQLServices) { ServiciosModel mongoService = mongoInstance.getServicio(service.IdService); ServiciosSQLModel currService = new ServiciosSQLModel { idService = mongoService.idService, nombre = mongoService.nombre, precio = mongoService.precio, status = service.State }; services.Add(currService); } return(Ok(services)); }