Ejemplo n.º 1
0
        public IEnumerable<MCOptionDAO> GetMCOptions()
        {
            MCOptionServiceClient client = new MCOptionServiceClient();

            try
            {
                IEnumerable<MCOptionDAO> result = client.GetMCOptions();
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }
Ejemplo n.º 2
0
        public bool PostMCOption(MCOptionDAO mCOption)
        {
            MCOptionServiceClient client = new MCOptionServiceClient();

            try
            {
                bool result = client.CreateMCOption(mCOption);
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }
Ejemplo n.º 3
0
        public MCOptionDAO GetMCOption(int id)
        {
            MCOptionServiceClient client = new MCOptionServiceClient();

            try
            {
                MCOptionDAO result = client.GetMCOptionByID(id);
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }