public void DeleteResponse(ShopOptState state) { if (_deleteResponse != null) { _deleteResponse(state); } }
void OnDeleteShopRequest(IMessage msg, SessionEventArgs e) { var shop = msg.Obj as Shop; ShopOptState state = ShopOptState.Failed; if (e.Session.SessionId == null) { state = ShopOptState.InvalidOpt; } else { if (shop != null) { try { state = _shopBll.Delete(shop); } catch (Exception ex) { ErrorLog(msg.Header.Type, ex); } } } e.Session.Send(state, MessageType.DeleteShopResponse); }
public void AddResponse(ShopOptState state) { if (_addResponse != null) { _addResponse(state); } }