public void GetWorkShift2WorkShops() { using (ProxyBE op = new ProxyBE()) { SearchWorkShift2WorkShopArgs args = new SearchWorkShift2WorkShopArgs(); args.WorkShopID = Guid.Parse(Request["WorkShopID"].ToString()); SearchResult sr = op.Client.SearchWorkShift2WorkShop(SenderUser, args); Response.Write(JSONHelper.Dataset2Json(sr.DataSet)); } }
public SearchResult SearchWorkShift2WorkShop(Sender sender, SearchWorkShift2WorkShopArgs args) { try { using (ObjectProxy op = new ObjectProxy()) { return(op.SearchWorkShift2WorkShop(args)); } } catch (Exception ex) { PLogger.LogError(ex); throw ex; } }