public static SelectValueContract ToContract(this BASE_SELECTE_VALUE_INFO source) { if (source == null) { throw new InvalidOperationException("source is null"); } return(new SelectValueContract { Id = source.Id, Name = source.Name, Belong = source.Belong, SOrder = source.SOrder, Code = source.Code }); }
public bool UpdateName(Guid id, string name) { BASE_SELECTE_VALUE_INFO cc = _selectBaseRepository.Update(u => u.Id == id, (u) => { u.Name = name; }); if (cc != null) { return(true); } else { return(false); } }