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); }
public LecturerFollowEntity Create(UserEntity UserEntity, LecturerFollowEntity LecturerFollowEntity) { LecturerFollow LecturerFollow = LecturerFollowEntity.ToModel(); IMSContext.LecturerFollows.Add(LecturerFollow); IMSContext.SaveChanges(); return(LecturerFollowEntity); }
public LecturerFollowEntity Update(Guid LecturerId, [FromBody] LecturerFollowEntity LecturerFollowEntity) { return(LecturerFollowService.Update(UserEntity, LecturerId, LecturerFollowEntity)); }
public LecturerFollowEntity Create([FromBody] LecturerFollowEntity LecturerFollowEntity) { return(LecturerFollowService.Create(UserEntity, LecturerFollowEntity)); }