public void UpdateEvent() { if (Vaildation()) { try { Model.SkillType skillType = new Model.SkillType(Convert.ToInt32(_ItsView.SkillTypeID), _ItsView.SkillTypeName); _ISkillTypeFacade.UpdateSkillType(skillType); _ItsView.ActionSuccess = true; } catch (Exception ex) { _ItsView.Message = "<span class='fontred'>" + ex.Message + "</span>"; } } }
public void AddEvent() { if (Vaildation()) { try { Model.SkillType skillType = new Model.SkillType(0, _ItsView.SkillTypeName); _ISkillTypeFacade.AddSkillType(skillType); _ItsView.ActionSuccess = true; } catch (Exception ex) { _ItsView.Message = "<span class='fontred'>" + ex.Message + "</span>"; } } }
public void DataBind(string id) { int _ID; if (!VaildateId(id, out _ID)) { return; } Model.SkillType theDataToBind = _ISkillTypeFacade.GetSkillTypeByPKID(_ID); if (theDataToBind == null) { return; } _ItsView.SkillTypeID = theDataToBind.ParameterID.ToString(); _ItsView.SkillTypeName = theDataToBind.Name; }