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); } }
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); } }
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); } }