public bool UpdateWidget(WidgetDao wid) { try { if (Dh.UpdateWidget(dm.MapToEntity(wid))) { return(true); } return(false); } catch (Exception) { return(false); } }
public Widget MapToEntity(WidgetDao w) { var mapper = StateMapper.CreateMapper(); return(mapper.Map <Widget>(w)); }