Esempio n. 1
0
        public LecturerFollowEntity Update(UserEntity UserEntity, Guid LecturerId, LecturerFollowEntity LecturerFollowEntity)
        {
            LecturerFollow LecturerFollow = IMSContext.LecturerFollows.Where(l => l.Id == LecturerId).FirstOrDefault();

            LecturerFollowEntity.ToModel(LecturerFollow);
            IMSContext.SaveChanges();
            return(null);
        }
Esempio n. 2
0
        public LecturerFollowEntity Create(UserEntity UserEntity, LecturerFollowEntity LecturerFollowEntity)
        {
            LecturerFollow LecturerFollow = LecturerFollowEntity.ToModel();

            IMSContext.LecturerFollows.Add(LecturerFollow);
            IMSContext.SaveChanges();
            return(LecturerFollowEntity);
        }
Esempio n. 3
0
 public LecturerFollowEntity Update(Guid LecturerId, [FromBody] LecturerFollowEntity LecturerFollowEntity)
 {
     return(LecturerFollowService.Update(UserEntity, LecturerId, LecturerFollowEntity));
 }
Esempio n. 4
0
 public LecturerFollowEntity Create([FromBody] LecturerFollowEntity LecturerFollowEntity)
 {
     return(LecturerFollowService.Create(UserEntity, LecturerFollowEntity));
 }