Exemple #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);
        }
Exemple #2
0
        public LecturerFollowEntity Create(UserEntity UserEntity, LecturerFollowEntity LecturerFollowEntity)
        {
            LecturerFollow LecturerFollow = LecturerFollowEntity.ToModel();

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