public bool Save(dicsubject dicsubject) { if (string.IsNullOrEmpty(dicsubject.Guid)) { dicsubject.Create(); return(dicsubjectManager.Insert(dicsubject)); } else if (dicsubjectManager.GetById(dicsubject.Guid) != null) { return(dicsubjectManager.Update(dicsubject)); } else { return(dicsubjectManager.Insert(dicsubject)); } }
public bool Insert(dicsubject dto) { dto.Create(); return(dicsubjectManager.Insert(dto)); }