示例#1
0
 public void Put(SubjectVM subject)
 {
     service.Update(subject.ToEntity());
 }
示例#2
0
        public SubjectVM Post(SubjectVM subject)
        {
            var rs = service.Add(subject.ToEntity());

            return(rs == null ? null : BaseVM <object> .ToModel <SubjectVM>(rs));
        }