public static List <UserCourseRoleMappingModel> SaveUserCourseRoleMapping(UserCourseRoleMappingModel ucrm) { try { var ucrms = SQLAdapter.SaveUserCourseRoleMapping(ModelMapper.MapFromUserModelToUserCourseMapping(ucrm), ModelMapper.GetIdsFromTutorialGroupModelList(ucrm.TutorialGroups)); var mappedUcrms = ModelMapper.MapToUsersModel(ucrms); return(mappedUcrms); } catch (Exception e) { return(null); } }